sift = cv2.xfeatures2d.SIFT_create() not working even though have contrib installed

痴心易碎 提交于 2019-11-28 18:45:33
J.Zhao

I had the same problem. I change other opencv-python and opencv-contrib-python version, and solve this problem. Here is the history version about opencv-python.

https://pypi.org/project/opencv-python/#history, and i use the following code :

pip install opencv-python==3.4.2.16

pip install opencv-contrib-python==3.4.2.16

Edit

For Anaconda User just this instead of pip

conda install -c menpo opencv

this will install cv2 3.4.1 and everything you need to run SIFT

good luck~

It may be due to a mismatch of opencv version and opencv-contrib version. If you installed opencv from the source using CMake, and the source version is different from the version of opencv-contrib-python, uninstall the current opencv-contrib-python and do pip install opencv-contrib-python==<version of the source>.X or an another compatible version. One version setup that I have running is opencv source (3.2), opencv-python (3.4.0.14) and opencv-contrib-python (3.4.2.17)

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