module object has no attribute 'DescriptorExtractor_create()'

落爺英雄遲暮 提交于 2019-12-22 08:10:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!