Closed
Description
Hello,
with the recent update, in Opencv 3.4.3, the non-free algorithms such as SIFT and SURF are no more available.
>>> import cv2
>>> cv2.__version__
'3.4.3'
>>> cv2.xfeatures2d.SIFT_create()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(3.4.3) /io/opencv_contrib/modules/xfeatures2d/src/sift.cpp:1207: 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 'create'
>>> cv2.xfeatures2d.SURF_create()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(3.4.3) /io/opencv_contrib/modules/xfeatures2d/src/surf.cpp:1016: 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 'create'
As the error messages say, the library should be recompiled with -D OPENCV_ENABLE_NONFREE=1
.
Would it be possible to reintroduce these algorithms in the pip package?
Metadata
Metadata
Assignees
Labels
No labels