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

报错位置:

sift = cv2.SIFT_create()

报错原因:opencv将SIFT等算法整合到xfeatures2d集合里面了。
改为:

sift = cv2.xfeatures2d.SIFT_create()

猜你喜欢

转载自blog.csdn.net/qq_53545309/article/details/133558899