日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

OpenCV库使用sift函数,出现“The function/feature is not implemented”问题解决方法

發布時間:2025/5/22 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 OpenCV库使用sift函数,出现“The function/feature is not implemented”问题解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

sift = cv2.xfeatures2d.SIFT_create(),提示如下錯誤:

cv2.error: OpenCV(4.1.0) 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'

?谷歌一下,發現是sift算法已經申請專利,開源OpenCV沒有版權,新的OpenCV去掉了這個算法。

解決辦法如下:

1、卸載已安裝的高版本:

pip uninstall opencv-python pip uninstall opencv-contrib-python

2、安裝低版本

pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==3.4.2.16 pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python==3.4.2.16

至此,問題完美解決~~~

總結

以上是生活随笔為你收集整理的OpenCV库使用sift函数,出现“The function/feature is not implemented”问题解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。