Using SIFT (or an alternative) in Python OpenCV 4.2.0 (In 2020)
问题 I am trying to use SIFT for feature detection with Python, but it is no longer part of OpenCV or OpenCV contrib. With OpenCV opencv-contrib-python (both versions 4.2.0.34, the latest as of this question), I get: >>> import cv2 >>> cv2.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2.cv2' has no attribute 'SIFT_create' >>> cv2.xfeatures2d.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> cv2