步骤:
1.在官网下载OpenCV和opencv_contrib安装包
安装包下载:
https://github.com/opencv/opencv
https://github.com/opencv/opencv_contrib
2.安装依赖:
1. sudo apt-get install build-essential
2. sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
3. sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
3.开始安装,安装时间大概要半个钟
cd xxx/opencv
mkdir release
cd release
注意:最好是OpenCV和opencv_contrib安装包同时安装,如下所示,避免分开安装出现问题,坑很多。
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/home/opencv/opencv_contrib/modules/ ..
sudo make
sudo make install
安装目录在/usr/local下。
参考:
ubuntu16.04下opencv3.2和opencv_contrib编译安装
https://blog.csdn.net/CupidYzw97/article/details/74857467
在已配置成功的opencv3.2.0下配置opencv_contrib模块
https://www.cnblogs.com/ilym/p/8024788.html
ubuntu 14.04 64位 安装Opencv3.1.0 (包含opencv_contrib模块)
http://www.cnblogs.com/asmer-stone/p/5089764.html#3831682
Ubuntu 16.04 64bit ,openCV 3.4.0
https://blog.csdn.net/jessican_uestc/article/details/79614879
Installation in Linux(官网)
https://docs.opencv.org/3.4.0/d7/d9f/tutorial_linux_install.html
Ubuntu14.04下opencv卸载与重装
https://blog.csdn.net/yoouzx/article/details/52988094
openCV安装
https://blog.csdn.net/zhx6044/article/details/39009983
官网安装包下载:
https://github.com/opencv/opencv
https://github.com/opencv/opencv_contrib
1.在官网下载OpenCV和opencv_contrib安装包
安装包下载:
https://github.com/opencv/opencv
https://github.com/opencv/opencv_contrib
2.安装依赖:
1. sudo apt-get install build-essential
2. sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
3. sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
3.开始安装,安装时间大概要半个钟
cd xxx/opencv
mkdir release
cd release
注意:最好是OpenCV和opencv_contrib安装包同时安装,如下所示,避免分开安装出现问题,坑很多。
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/home/opencv/opencv_contrib/modules/ ..
sudo make
sudo make install
安装目录在/usr/local下。
参考:
ubuntu16.04下opencv3.2和opencv_contrib编译安装
https://blog.csdn.net/CupidYzw97/article/details/74857467
在已配置成功的opencv3.2.0下配置opencv_contrib模块
https://www.cnblogs.com/ilym/p/8024788.html
ubuntu 14.04 64位 安装Opencv3.1.0 (包含opencv_contrib模块)
http://www.cnblogs.com/asmer-stone/p/5089764.html#3831682
Ubuntu 16.04 64bit ,openCV 3.4.0
https://blog.csdn.net/jessican_uestc/article/details/79614879
Installation in Linux(官网)
https://docs.opencv.org/3.4.0/d7/d9f/tutorial_linux_install.html
Ubuntu14.04下opencv卸载与重装
https://blog.csdn.net/yoouzx/article/details/52988094
openCV安装
https://blog.csdn.net/zhx6044/article/details/39009983
官网安装包下载:
https://github.com/opencv/opencv
https://github.com/opencv/opencv_contrib