Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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?