Skip to content

Instantly share code, notes, and snippets.

@hitigon
Last active August 29, 2015 14:19
Show Gist options
  • Save hitigon/f7cf77fa2a8eb034af91 to your computer and use it in GitHub Desktop.
Save hitigon/f7cf77fa2a8eb034af91 to your computer and use it in GitHub Desktop.
openCV2 w/ python supports
#! /bin/bash
sudo yum install -y python-devel numpy # 2.6.9
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.10/opencv-2.4.10.zip
unzip opencv-2.4.10
cd opencv-2.4.10
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
make
sudo make install
sudo ln -s /usr/local/lib/python2.6/dist-packages/cv2.so /home/xad/blueprints/cv2.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment