opencv / opencv_contrib

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

limited functionality cv2.text #798

Closed xtrntr closed 7 years ago

xtrntr commented 8 years ago
System information (version)\

cv2.text has limited functionality. I installed tesseract through homebrew and verified that it works through the command line. I am unable to call certain functions i.e. computeNMChannels like in this example: https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/textdetection.py

Steps to reproduce
StevenPuttemans commented 8 years ago

Did you actually rebuilt OpenCV with tesseract support enabled and ensured it found all files? If so please provide your CMAKE output!

xtrntr commented 8 years ago

I didn't do that. I used conda install -c menpo opencv3=3.1.0

StevenPuttemans commented 8 years ago

I didn't do that. I used conda install -c menpo opencv3=3.1.0

Ah I guess there lies the issue. To be able to use all functionality from opencv text module, you need to download the opencv repo code, the opencv contrib repo code, run cmake and select the text module, then make sure cmake finds all paths to your tesseract installation and build opencv.

That binaries will then have all functionality available.

This functionality is not available through prebuilt packages or download managers like conda, as far as I am aware.

berak commented 8 years ago

see also: https://github.com/opencv/opencv/issues/7329