-->

Tuesday, January 22, 2013

OpenCV pills



Refer to OpenCV main page for full installation procedure.

OpenCV installation procedure under linux:
  • Download the release version for linux:  (link)
  • Extract file: 
> tar xvjf OpenCV-2.4.0.tar.bz2 -C ~
  •  Create a build folder inside OpenCV and move into it:
> mkdir ~/OpenCV-2.4.0/build
> cd  ~/OpenCV-2.4.0/build
  • run cmake:
> cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/local/ialonso/OpenCV -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
  • run make & make install
> make
> make install
If no errors occured OpenCV will be installed in /local/user/OpenCV.

To make python recognize cv library:
  • Modify .bashrc and add the following line:
export PYTHONPATH="$PYTHONPATH:/local/ialonso/OpenCV/lib/python2.6/site-packages/"


* Replace "ialonso" with your system username where needed.





No comments:

Post a Comment