欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

UBUNTU18.04 装OPENCV3.2.0

程序员文章站 2022-07-14 12:13:25
...

下载地址:

https://github.com/opencv/opencv/archive/3.2.0.zip
https://github.com/opencv/opencv_contrib/archive/3.2.0.zip

参考地址:

https://blog.csdn.net/hiram_zhang/article/details/103467737

https://www.cnblogs.com/RichardYao/archive/2018/11/03/9900268.html

1、依赖项

sudo apt-get install build-essential 
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

上面命令执行会报错,错误说libjaster-dev无法安装,解决办法如下:

sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev

1、依赖项:

sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev # 处理图像所需的包
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev liblapacke-dev
sudo apt-get install libxvidcore-dev libx264-dev # 处理视频所需的包
sudo apt-get install libatlas-base-dev gfortran # 优化opencv功能
sudo apt-get install ffmpeg

2、对于 ippicv_linux_20151201.tgz 下载过慢问题

https://blog.csdn.net/u013468614/article/details/103381002

3、出现问题:
CUDA_nppi_LIBRARY (ADVANCED)
解决:

版本切换
https://www.cnblogs.com/xiangdongBig1/p/12091980.html

相关标签: UBUNTU18