本文主要是介绍ubuntu18.4安装opencv4.5.3及contrib模块,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.下载解压
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/master.zip
unzip opencv.zip
unzip opencv_contrib.zip
2.安装opencv
sudo apt-get install libgtk2.0-dev pkg-config
mkdir -p build && cd build
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-master/modules ../opencv-master
make
sudo make install
这篇关于ubuntu18.4安装opencv4.5.3及contrib模块的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!