关于OpenCV算法未实现及其版权问题
程序员文章站
2022-03-03 10:03:53
...
错误示例如下:
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’
如果运行OpenCV程序提示算法未实现可以通过安装opencv-contrib-python解决:
pip install opencv-contrib-python
如果运行OpenCV程序提示算法版权问题可以通过安装低版本的opencv-contrib-python解决:
pip install --user opencv-contrib-python==3.3.0.10