1.安装库
sudo yum -y install pkgconfig cmake curl git gtk2-devel libpng-devel libjpeg-devel libtiff-devel tbb tbb-devel libdc1394-devel unzip
2.下载文件
https://github.com/opencv/opencv/archive/4.1.2.zip
https://github.com/opencv/opencv_contrib/archive/4.1.2.zip
3.解压
cd opencv4.1.2
mkdir build
cd build
cm
1