python36無法使用xfeatures2d

2021-09-21 13:08:08 字數 564 閱讀 1916

報錯:(-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-contrib-python,我的python版本是python36。

1. 解除安裝opencv:  

pip uninstall opencv

2. 安裝pip opencv-contrib-python:

使用Python3 6做文字切割

hi 使用 python 對乙個大檔案按照行數進行切割 coding utf 8 import os python 幹起活來 是真的慢 def split fromfile,todir,linenum 如果我資料夾不存在,則建立 if not os.path.exists todir os.mkdi...

python3 6 爬蟲例子

importurllib.request importre importos importurllib.erroraserror url 請求 request urllib.request.request url 爬取結果 response urllib.request.urlopen reques...

Mac 解除安裝Python3 6

mac 自帶的 python 已經能夠滿足我們的需要了,因此很多同學在安裝完 python 之後,又想要將其刪除,或者稱之為解除安裝。對於刪除 python,我們首先要知道其具體都安裝了什麼,實際上,在安裝 python 時,其自動生成 1 python framework,即 python 框架 ...