opencv4.10不能使用sift = cv2.xfeatures2d.SIFT_create()
生活随笔
收集整理的這篇文章主要介紹了
opencv4.10不能使用sift = cv2.xfeatures2d.SIFT_create()
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
python3.6
報錯:
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已經(jīng)被申請專利了,所以,在opencv3.4.3.16?版本后,這個功能就不能用了。
解決方法(一):
把版本退回到3.4.3以前:
pip install opencv-python==3.4.2.16pip install opencv-contrib-python==3.4.2.16如果python環(huán)境是使用anaconda建的:也用pip安裝。。。我一開始用conda安裝,出現(xiàn).dll的錯誤。
解決方法(二):
自己重新編譯opencv,?(我沒有試,還是因為懶吧,有能用的就行,哈哈哈)
?
?
?
?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的opencv4.10不能使用sift = cv2.xfeatures2d.SIFT_create()的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: win10系统使用Anaconda安装o
- 下一篇: 《如焉》