Sunday, May 3, 2015

Building opencv 3 beta under Ubuntu 15.04

Building opencv 3 beta from source:

Several blogs explain how to install opencv3 on Ubuntu or on mac os X. A bunch of libraries has to be installed as mentionned previously for opencv 2.49. I follow the guidelines :
  • download the source from github
  • make a separate directory to build the code

Using CMakegui, choose the source directory and the build directory:

click on Configure then on Generate

Check if CUDA, OpenCL, python are detected:




Then from a terminal openned in the build directory, run the command:

make -j4

then:
sudo make install

Checking if opencv can be used from python:

From an Ipython  notebook, write the small code:
import cv2
print cv2__version__

And we get:

3.0.0-dev

No comments: