ubuntu16.04 install OpenCV3.4 OpenCV_Contri

git clone https://github.com/Itseez/opencv.git
git clone https://github.com/Itseez/opencv_contrib.git

you may wait for a while to download.

install dependence:

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

make:

cd opencv_contri dir and git checkout -b 3.4

cd opencv dir and git checkout -b 3.4

mkdir build //in opencv dir

cmake -DOPENCV_EXTRA_MODULES_PATH=xx/xx/opencv_contrib/modules/ ..   //you may wait for a while to download when cmaking

make -j8

sudo make install

reference : https://www.cnblogs.com/fx-blog/p/8213704.html

opencv3.4.2 may not ok!!! opencv3.4may ok!!!

 

©️2020 CSDN 皮肤主题: 书香水墨 设计师:CSDN官方博客 返回首页