Unable to find SIFT or xfeatures2d in OpenCV Python [duplicate]
问题 This question already has answers here : PyCharm: Installation of non-free OpenCV modules for operations like SIFT, SURF (2 answers) Closed last year . I recently switch back to python for facial detection and pattern recognition using OpenCV 3.4.1 However when running OpenCV for point recongnition, I get the error AttributeError: module 'cv2.cv2' has no attribute 'SIFT_create' I have read that changing the line from sift = cv2.SIFT_create() to sift = sift = cv2.xfeatures2d.SIFT_create()