How to install OpenCV and opencv_contrib from source code?
# OpenCV Installation
## Get OpenCV
```sh
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
```
## Switch OpenCV version needed
```sh
cd opencv
git checkcout 3.3.1
cd opencv_contrib
git checkcout 3.3.1
```
# Build OpenCV
```sh
cd opencv
mkdir build
cd build
cmake .. -DOPENCV_EXTRA_MODULES_PATH=/home/yubao/data/project/3rdPartyLibs/opencv_contrib/modules -DCMAKE_INSTALL_PREFIX=/usr/local
make -j5
```
No comments