Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

xfeatures2d in Opencv 3.2-dev

I just did a fresh install on my ubuntu machine. 3 folders. One for build, one for opencv and open for opencv_contrib. I took opencv and contrib from git repositories.

I executed on my build folder:

sudo cmake -DOPENCV_EXTRA_MODULES_PATH=/home/user/opencv/opencv_contrib/modules /home/user/opencv/opencv

After that, :

sudo make -j5

After a while it seems to be ok.

Then:

$ python
>>> import cv2
>>> surf = cv2.xfeatures2d.SURF_create(400)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'xfeatures2d'

If I exec cv2.__version__ I get: 3.2.0-dev

What should I do now? How can I include opencv_contrib?