why I can’t use sift/surf
How could I do.I used anaconda configure python environment.
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: 1,033 times
Last updated: Nov 30 '17
How to check and update the existing version of Open-CV on ubuntu 14.04 ?
Need Help! Python, Object Detection/Tracking [closed]
Lucas Kanade Optical Flow Implementation
What the hell is up with BackgroundSubtractorMOG, MOG2, KNN, etc.? [closed]
video is not opening in opencv 2.4.10 with python
OpenCV + Python | Multiple object tracking
LBPH OpenCV Raspberry Pi with Python
Track multiple simple objects and measure distance traveled by each in 4 second video
problem in displaying video stream window in face detection python
The imread of python opencv 3.1 can't work with chinese pathdir?
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 ...