opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.41k stars 5.76k forks source link

i try to execute "opencv_contrib/modules/text/samples/textdetection.py/" but it show error in line no 48: #1281

Closed allenkallz closed 7 years ago

allenkallz commented 7 years ago
System information (version)
Detailed description
Steps to reproduce
allenkallz commented 7 years ago

error is

File "textdetection.py", line 48, in rects = cv2.text.erGrouping(img,channel,[r.tolist() for r in regions]) cv2.error: /opt/opencv/modules/imgproc/src/floodfill.cpp:510: error: (-211) Seed point is outside of image in function floodFill

allenkallz commented 7 years ago

@alalek what you need please tell me but i am getting error when try to execute sample code "opencv_contrib/modules/text/samples/textdetection.py"

and i run following command in terminal " python textdetection.py scenetext_word01.jpg "

srinidhiprabandham commented 7 years ago

@allenkallz I believe that you cannot just run this as any other python program. This has to be compiled and Build with opencv (Please refer README) with this package as additional modules. And then we can run it like how you describe.

alalek commented 7 years ago

I can confirm this issue and reproduce this error message.

allenkallz commented 7 years ago

@srinidhiprabandham I already compile and Build with opencv after that i am try to execute this file but it show same error