opencv SIFT报错解决方案

错误:cv2.error: OpenCV(4.0.1) D:\Build\OpenCV\opencv_contrib-4.0.1\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’

解决方法:1 重新装老版本的opencv https://stackoverflow.com/questions/52305578/sift-cv2-xfeatures2d-sift-create-not-working-even-though-have-contrib-instal

2 CMake 重新编译opencv http://www.cnblogs.com/gengyi/p/10499964.html

软件镜像:http://mirrors.aliyun.com/pypi/simple/

你可能感兴趣的:(图像处理)