Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

text module build failed

Hi guys. I have builded text module from the contrib-repo without the Tesseract (the text recognition is not necessary ). The cmake output seems right, but the text detection functions such as cv2.text.loadClassifierNM1 and createERFilterNM1 etc. cannot be called in python. So what's wrong here? any ideas? P.S. My environment is ubuntu 15.05, opencv 3.0 with python enable. This is the output of the command help(“cv2.text”). I was expected to find methods like “loadClassifierNM1”, etc. Help on module cv2.text in cv2:

NAME cv2.text

FILE (built-in)

DATA ERFILTER_NM_IHSGRAD = 1 ERFILTER_NM_IHSGrad = 1 ERFILTER_NM_RGBLGRAD = 0 ERFILTER_NM_RGBLGrad = 0 ERGROUPING_ORIENTATION_ANY = 1 ERGROUPING_ORIENTATION_HORIZ = 0 OCR_DECODER_VITERBI = 0 OCR_LEVEL_TEXTLINE = 1 OCR_LEVEL_WORD = 0

(END)

click to hide/show revision 2
No.2 Revision

updated 2016-10-10 05:09:59 -0600

berak gravatar image

text module build failed

Hi guys. I have builded text module from the contrib-repo without the Tesseract (the text recognition is not necessary ). The cmake output seems right, but the text detection functions such as cv2.text.loadClassifierNM1 and createERFilterNM1 etc. cannot be called in python. So what's wrong here? any ideas? P.S. My environment is ubuntu 15.05, opencv 3.0 with python enable. This is the output of the command help(“cv2.text”). I was expected to find methods like “loadClassifierNM1”, etc. Help on module cv2.text in cv2:

NAME
cv2.text

cv2.text FILE (built-in)

FILE (built-in)

DATA ERFILTER_NM_IHSGRAD = 1 ERFILTER_NM_IHSGrad = 1 ERFILTER_NM_RGBLGRAD = 0 ERFILTER_NM_RGBLGrad = 0 ERGROUPING_ORIENTATION_ANY = 1 ERGROUPING_ORIENTATION_HORIZ = 0 OCR_DECODER_VITERBI = 0 OCR_LEVEL_TEXTLINE = 1 OCR_LEVEL_WORD = 0

0

(END)

(END)