AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d_SIFT' 将
# sift = cv.xfeatures2d_SIFT().create()改为
sift = cv.xfeatures2d.SIFT_create()
AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d_SIFT' 将
# sift = cv.xfeatures2d_SIFT().create()改为
sift = cv.xfeatures2d.SIFT_create()