The module object does not have the attribute 'DescriptorExtractor_create ()'

I installed opencv3.1.0 with opencv_contrib set correctly, but I get an error without the "DescriptorExtractor_create ()" module, and everything is fine. Suggestions???:)

+4
source share
1 answer

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()

+2
source

Source: https://habr.com/ru/post/1659313/


All Articles