Ask Your Question
0

text module build failed

asked 2016-10-10 04:58:24 -0500

congliu gravatar image

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

berak gravatar image

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)
edit retag flag offensive close merge delete

Comments

i can only guess, but you need latest versions of both opencv and opencv_contrib (from github)

berak gravatar imageberak ( 2016-10-10 05:18:16 -0500 )edit

I have tried opencv3.1 with contrib 3.1. Now the problem still exists.

congliu gravatar imagecongliu ( 2016-10-11 23:12:16 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-10-12 08:38:25 -0500

congliu gravatar image

The opencv and contrib 3.1.x develop version solved my problem!

edit flag offensive delete link more

Comments

ok. actually, the python bindings were added after the 3.0 release, so your previous module only contained some empty stubs.

berak gravatar imageberak ( 2016-10-12 08:52:00 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-10-10 04:58:24 -0500

Seen: 120 times

Last updated: Oct 12 '16