0.简介
关于安装可以在http://docs.opencv.org/2.4/doc/tutorials/introduction/table_of_content_introduction/table_of_content_introduction.html#table-of-content-introduction找到,openCV支持linux/windowns等操作系统,在网页找到对应系统的安装说明即可。
1.linux系统安装openCV
这里简单介绍一下linux系统下的安装,linux下安装opencv非常方便。首先确保安装了所需要的包,可以使用如下命令进行安装:
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
到官网下载源代码并解压。
进入源代码解压目录,使用cmake/make/make install 进行3步曲安装。
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ../opencv-3.1.0/
$make
#make install
cmake 说明:cmake的用法是
cmake [<some optional parameters>] <path to the OpenCV source directory>其中参数是可选的,OpenCV源代码的目录必须要填写正确。