pip或者anacnda安装opencv以及opencv-contrib

一条命令就可以搞定:

pip install opencv-contrib-python   opencv-python  

或者:

pip install opencv-contrib-python==3.4.0.12

下载网址:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv

OpenCV, a real time computer vision library.

Pillow, a replacement for PIL, the Python Image Library, which provides image processing functionality and supports many file formats.
Use `from PIL import Image` instead of `import Image`.

另外有参考网址:

https://pypi.org/project/opencv-contrib-python/ 

原文地址:https://www.cnblogs.com/leoking01/p/9292751.html