In OpenCV 3.x, SIFT and SURF were removed because they are patented by the algorithms and are not installed by default. However, they are available in the "opencv_contrib" package, which is not installed by default during a normal installation of OpenCV. You need to install them manually. Browse this one for more details on this. Assuming you did it right, you need to use type commands sift = cv2.xfeatures2d.SIFT_create()insteadDescriptorExtractor_create()
source
share