python版本安装
适合所有平台:
$ sudo pip install opencv-python
$ sudo pip install opencv-contrib-python
Windows
https://sourceforge.net/projects/opencvlibrary/ 下载对应的exe安装即可。
macOS X
brew install opencv --with-tbb --with-opengl
安装OpenCV依赖
$ sudo apt-get update
$ sudo apt-get upgrade
# 开发工具
$ sudo apt-get install build-essential cmake …