Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

where to find opencv-contrib-python-nonfree now?

I tried to install opencv-contrib-python-nonfree using pip install opencv-contrib-python-nonfree. and it says the below error. I googled it and i found the below website says it is gone. so is there an alternative? I can install opencv-contrib-python no problem. The reason I need nonfree version is because of the error when calling SURF algorithm like this: surf = cv2.xfeatures2d.SURF_create(8000). So how to solve it? I need to use SURF algorithem. Thanks

https://github.com/skvark/opencv-python/issues/348


the error when install opencv-contrib-python-nonfree:

ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-nonfree (from versions: none)
ERROR: No matching distribution found for opencv-contrib-python-nonfree

The error when using SURF

import cv2

img = cv2.imread('../images/varese.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

surf = cv2.xfeatures2d.SURF_create(8000)
keypoints, descriptors = surf.detectAndCompute(gray, None)

error: OpenCV(4.5.1) C:UsersappveyorAppDataLocalTemp1pip-req-build-i1s8y2i1opencv_contribmodulesxfeatures2dsrcsurf.cpp:1029: 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::SURF::create'

question from:https://stackoverflow.com/questions/65865654/where-to-find-opencv-contrib-python-nonfree-now

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...