问题
I installed opencv3.1.0 with opencv_contrib correctly installed but I am getting the error no module 'DescriptorExtractor_create()' and everything is fine. Suggestions??? :)
回答1:
In OpenCV 3.x, SIFT and SURF have been removed because they are patented algorithms and as such are not installed by default. However they are available in the 'opencv_contrib' package which is not installed by default with the normal OpenCV installation. You need to install them manually. Consider this for details regarding the same.
Assuming you did this correctly, you need to use commands like sift = cv2.xfeatures2d.SIFT_create()
instead of DescriptorExtractor_create()
来源:https://stackoverflow.com/questions/40326747/module-object-has-no-attribute-descriptorextractor-create