cv2.xfeatures2d.SURF_create 报错

来源:11-6 SURF特征检测

cloverxixi

2021-07-23

Traceback (most recent call last):
File “D:\WorkSpace\Python\openCV\com.fijo.main\harris\sift.py”, line 19, in
surf = cv2.xfeatures2d.SURF_create()
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1i5nllza\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’

写回答

2回答

李超

2021-07-23

群里解答了吧?

1
1
cloverxixi
嗯嗯,谢谢老师,我待会验证下
2021-07-23
共1条回复

李超

2021-07-24

需要你自己build opencv_contribute_python,编译时加上提示的哪个选项...NOFREE

0
0

OpenCV三大经典项目实战 一次掌握计算机视觉核心技能

OpenCV入门到进阶:实战三大典型项目

926 学习 · 233 问题

查看课程