Ask Your Question
0

How to get objdetect module from python in latest openCV (3.0.0-dev)

asked 2014-10-09 04:50:09 -0500

melevir gravatar image

updated 2014-10-09 04:54:06 -0500

I want to use cool text detection algorithm from new OpenCV. So I installed latest version from github (rev. 4f48a05906adb06b05fb6673c2cc0d790480b93d), and now I have:

In [1]: import cv2
libdc1394 error: Failed to initialize libdc1394  # thats ok, I don't care about camera
In [2]: cv2.__version__
Out[2]: '3.0.0-dev'

Even more, it works fine:

In [3]: image = cv2.imread('some_test_image.png')
In [4]: image.shape
Out[4]: (52, 236, 3)

Now I want to get something from objdetect module - for example, ERFilter. And this is where problem starts:

In [5]: cv2.ERFilter
AttributeError: 'module' object has no attribute 'ERFilter'
In [6]: cv2.objdetect
AttributeError: 'module' object has no attribute 'objdetect'

According to binding docs python bindings should be generated automatically, so I'm obviously missing something.

Any help, please?

edit retag flag offensive close merge delete

Comments

may i ask, how you got to that link ?

berak gravatar imageberak ( 2014-10-09 06:28:54 -0500 )edit

Same way as I got most of links - from google.)

melevir gravatar imagemelevir ( 2014-10-09 06:33:53 -0500 )edit

ah, ok. it's just not linked from anywhere in the current docs. mystery...

berak gravatar imageberak ( 2014-10-09 06:35:50 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-10-09 05:09:07 -0500

berak gravatar image

updated 2014-10-09 06:25:13 -0500

ok, docs are wrong there.

the text detection was moved here (that's in the contrib repo)

also, bummer, it is not wrapped to python or java (atm).

edit flag offensive delete link more

Comments

2

Oh... thanks for explanation.

sad

melevir gravatar imagemelevir ( 2014-10-09 05:40:10 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-10-09 04:50:09 -0500

Seen: 561 times

Last updated: Oct 09 '14