Skip to content

Instantly share code, notes, and snippets.

@MasazI
Last active November 24, 2015 11:53
Show Gist options
  • Save MasazI/574cae9e7f25c3238ba5 to your computer and use it in GitHub Desktop.
Save MasazI/574cae9e7f25c3238ba5 to your computer and use it in GitHub Desktop.
good tutorial of opencv3.0 and contlib for ubuntu
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