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

你可能感兴趣的:(机器视觉,opencv)