在Ubuntu安装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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值