Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.

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

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)

[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

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)

[edit]

besides, the SIFT patent expired, so from opencv4.4.0 or 3.4.11 on you can use cv2.features2d.SIFTcv2.features2d.SIFT_create() as a good alternative to SURF