craneium.net

brain matters . . .

  • Increase font size
  • Default font size
  • Decrease font size
Home Python Programming Installing OpenCV 2.0 for Python Fun

Installing OpenCV 2.0 for Python Fun

E-mail Print PDF

OpenCV has a lot of nifty stuff built into it.  The install is pretty easy but has a few small hitches worth mentioning.

First download the .tar.bz from here: link

Install cmake under Ubuntu/Debian, untar the directory, cd in, and run cmake.


$sudo apt-get install cmake
$tar xfj OpenCV-2.0.0.tar.gz
$cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .

Don't omit the dot at the end!  Next:


$make
$make install

From there I ran into the small problem that it installs to the depreciated "site-packages" instead of "dist-packages" so:


$cd /usr/local/lib/python2.6/site-packages
$sudo cp cv.so ../dist-packages

From there everything worked wonderfully!

 

 

Last Updated on Monday, 08 March 2010 17:44