why I can’t use sift/surf
How could I do.I used anaconda configure python environment.
Follow the steps (for windows):
1) you need ensure that xfeatures2d is a valid opencv module (on building), see: https://wiki.qt.io/Show_library_depen...;
2) you need ensure that PYTHONPATH is setted for cv2.dll or cv2.so directory;
> echo %PYTHONPATH%
or see https://www.computerhope.com/issues/c....
In my case, cv2.dll is in C:\libs:
> set PYTHONPATH=C:\libs
> python
Python 2.7.10 (default, Jul 30 2016, 19:40:32)
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.xfeatures2d
<module 'cv2.xfeatures2d' (built-in)>
>>>
sift = cv2.xfeatures2d.SIFT_create()
surf = cv2.xfeatures2d.SURF_create()
Asked: 2017-11-27 19:58:03 -0600
Seen: 998 times
Last updated: Nov 30 '17
please remove the useless screenshots, and replace them with TEXT
SIFT/SURF has been removed OpenCV 3.0.0 or later .
^^ ... has been moved to opencv_contrib ...