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)
i can only guess, but you need latest versions of both opencv and opencv_contrib (from github)
I have tried opencv3.1 with contrib 3.1. Now the problem still exists.