python 2.7 + OpenCV 3.0.0 on Ubuntu using Anaconda

  1. install anaconda
  2. install python packages
  3. download OpenCV 3.0.0 source
  4. compile OpenCV 3.0.0 with BUILD_opencv_python2 ON (BUILD_opencv_python3 may work with python 3 but I didn’t try yet)

With default settings, OpenCV package for python 2 is /usr/local/lib/python2.7/site-packages/cv2.so and one for python 3 is /usr/local/lib/python3.4/dist-packages/cv2.cpython-34m.so (python3.4 might be different if you use another version of python 3)

Once the compilation is done, we can use openCV from python as follows.pythonOpenCVbindings

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s