-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.OpenCV
18 lines (16 loc) · 1.07 KB
/
README.OpenCV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Always prefer the package manager version on your system if it exists and is up-to-date!
Assorted information on installing OpenCV 3.1.0 properly on a system:
- unzip opencv-3.1.0.zip
- cd opencv-3.1.0
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 -DWITH_IPP=ON -DINSTALL_CREATE_DISTRIB=ON -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules ..
- make -j4 -s
- sudo make install
NB: -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules is required for -DPOSEESTIMATION=1
you can download opencv_contrib from https://github.com/Itseez/opencv_contrib
and place it in the opencv directory, make sure you download the 3.1.0 tag
on Ubuntu 16.04 you could use (note that -DLIB_SUFFIX= is not needed here):
cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_IPP=ON -DINSTALL_CREATE_DISTRIB=ON \
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-3.1.0/modules/ -DBUILD_opencv_contrib_world=OFF \
-DBUILD_opencv_xfeatures2d=OFF -DBUILD_opencv_matlab=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_aruco=ON ../