Ask Your Question

melevir's profile - activity

2014-10-09 06:33:53 -0600 commented question How to get objdetect module from python in latest openCV (3.0.0-dev)

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

2014-10-09 05:40:55 -0600 received badge  Scholar (source)
2014-10-09 05:40:10 -0600 commented answer How to get objdetect module from python in latest openCV (3.0.0-dev)

Oh... thanks for explanation.

sad

2014-10-09 04:54:06 -0600 received badge  Editor (source)
2014-10-09 04:50:09 -0600 asked a question How to get objdetect module from python in latest openCV (3.0.0-dev)

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?