Ubuntu18.04安装OpenCV4.1.0

Ubuntu18.04安装OpenCV4.1.0

Ubuntu18.04安装OpenCV4.1.0

1.首先要安装依赖

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

2.下载OpenCV

https://opencv.org/releases/

下载Sources

到下载目录解压sudo unzip open

你可能感兴趣的:(Ubuntu18.04安装OpenCV4.1.0)