Ask Your Question

Patst's profile - activity

2018-02-22 17:50:12 -0600 received badge  Notable Question (source)
2017-10-31 13:39:28 -0600 received badge  Popular Question (source)
2017-03-15 12:54:13 -0600 received badge  Student (source)
2017-03-01 04:23:44 -0600 answered a question xfeatures2d module not being detected on OpenCV 3.2.0 in Python 2.7

Did you solve this? I am facing the same issue right now

2017-03-01 04:23:43 -0600 asked a question 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?