OpenCV报错:AttributeError: module ‘cv2.cv2‘ has no attribute ‘SIFT_create‘

Error reporting location:

sift = cv2.SIFT_create()

Reason for the error: opencv has integrated SIFT and other algorithms into the xfeatures2d collection.
Change to:

sift = cv2.xfeatures2d.SIFT_create()

Guess you like

Origin blog.csdn.net/qq_53545309/article/details/133558899