Recently I wanted to use SIFT runing the next line:
sift = cv2.xfeatures2d.SIFT_create()
. And the result was: AttributeError: 'module' object has no attribute 'xfeatures2d'
The I used: conda install -c conda-forge opencv and conda install -c menpo opencv. It doestn work because I got:
cv2.error: OpenCV(4.2.0) ../opencv_contrib/modules/xfeatures2d/src/sift.cpp:1210: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create'
Later I was read some about it, and I use commands like: pip install opencv-contrib-python. Finally I tried with this but some -D arguments not be found.
I have been trying to install opencv-contrib in anaconda without success. I'm not have advanced knowledge with this.