12得票1回答
SIFT和SURF: "module 'cv2.cv2'没有属性'xfeatures2d'"设置OPENCV_ENABLE_NONFREE CMake ==>解决方案OpenCV 3和OpenCV 4

我尝试在安装了opencv-contrib-python的OpenCV 3和OpenCV 4版本中使用SIFT和SURF功能:pip install opencv-contrib-python 我尝试了版本3.4.3、3.4.9和4.1.0,但出现了相同的问题:sift = cv2.xfeat...