Last active
November 24, 2015 11:53
-
-
Save MasazI/574cae9e7f25c3238ba5 to your computer and use it in GitHub Desktop.
good tutorial of opencv3.0 and contlib for ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/ | |
notice: change contlib directory. | |
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/tools/ -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=/home/deep/tools/opencv_contrib/modules -D BUILD_EXAMPLES=O -D WITH_FFMPEG=OFF -D WITH_CUDA=OFF .. | |
cd /usr/local/lib/python2.7/site-packages | |
ln -s /usr/tools/lib/python2.7/dist-packages/cv2.so ./ | |
add pythonpath | |
/usr/local/lib/python2.7/site-packages | |
add ld library path | |
/usr/tools/lib | |
after that, | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment