1 | initial version |
you probably installed cv2 via pip, which does not contain any nonfree modules.
the only way to get cv2.xfeatures.SURF running is to build from src with the contrib modules and the OPENCV_ENABLE_NONFREE cmake flag set.
2 | No.2 Revision |
you probably installed cv2 via pip, which does not contain any nonfree modules.modules (SURF is still patented).
the only way to get cv2.xfeatures.SURF running is to build from src with the contrib modules and the OPENCV_ENABLE_NONFREE cmake flag set.
3 | No.3 Revision |
you probably installed cv2 via pip, which does not contain any nonfree modules (SURF is still patented).
the only way to get cv2.xfeatures.SURF running is to build from src with the contrib modules and the OPENCV_ENABLE_NONFREE cmake flag set.
[edit]
besides, the SIFT patent expired, so from opencv4.4.0 or 3.4.11 on you can use cv2.features2d.SIFT
as a good alternative to SURF
4 | No.4 Revision |
you probably installed cv2 via pip, which does not contain any nonfree modules (SURF is still patented).
the only way to get cv2.xfeatures.SURF running is to build from src with the contrib modules and the OPENCV_ENABLE_NONFREE cmake flag set.
then, your code is simply wrong / outdated, you would have to invoke it like:
surf = cv2.xfeatures2d.SURF_create(500)
besides, the SIFT patent expired, so from opencv4.4.0 or 3.4.11 on you can use cv2.features2d.SIFT
as a good alternative to SURF
5 | No.5 Revision |
you probably installed cv2 via pip, which does not contain any nonfree modules (SURF is still patented).
the only way to get cv2.xfeatures.SURF running is to build from src with the contrib modules and the OPENCV_ENABLE_NONFREE cmake flag set.
then, your code is simply wrong / outdated, you would have to invoke it like:
surf = cv2.xfeatures2d.SURF_create(500)
besides, the SIFT patent expired, so from opencv4.4.0 or 3.4.11 on you can use
as a good alternative to SURFcv2.features2d.SIFTcv2.features2d.SIFT_create()