Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows运行报错 #9

Open
239144498 opened this issue Nov 5, 2023 · 0 comments
Open

windows运行报错 #9

239144498 opened this issue Nov 5, 2023 · 0 comments

Comments

@239144498
Copy link

作者你好,我使用的环境:python3.10.1、系统win11、编程工具pycharm2023.1.2,按照要求安装了4.5.5.64版本的opencv-contrib-pythonopencv-python,请问为什么载运行benchmark.py代码的时候会报错呢?

Traceback (most recent call last):
File "F:\demo\benchmark.py", line 43, in
class Matching(object):
File "F:\demo\benchmark.py", line 49, in Matching
'surf': SURF(),
File "F:\demo\image_registration\matching\keypoint\base.py", line 31, in init
self.detector = self.create_detector(**kwargs)
File "F:\demo\image_registration\matching\keypoint\surf\surf.py", line 36, in create_detector
detector = cv2.xfeatures2d.SURF_create(hessianThreshold=hessianThreshold, nOctaves=nOctaves, nOctaveLayers=nOctaveLayers,
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv_contrib\modules\xfeatures2d\src\surf.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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant