1. 程式人生 > >SIFT和SURF演算法的版權問題

SIFT和SURF演算法的版權問題

遇到該問題時,網友多是建議補個包,即
pip install opencv-contrib-python
我在補完之後又出現下面這樣的錯誤:
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版本退到3.4.2即可解決,解除安裝之前的包,然後
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python3.4.2.16
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python==3.4.2.16
親測有效!

原文:https://blog.csdn.net/weixin_43167047/article/details/82841750