所以我试着用:
sift = cv2.xfeatures2d.SIFT_create()
结果出现了这个错误:
cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv_contrib\modules\xfeatures2d\src\sift.cpp:1207: 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 'cv::xfeatures2d::SIFT::create'
我使用 Python 3.5.0
和 opencv(3.4.3)
,我只是使用空闲。这发生在我试图安装 TensorFlow 之后,我也试着四处查看并安装了 opencv-Contrib-python,但是我仍然得到相同的错误。提前谢谢你,如果我没有包括足够的信息,我道歉