Install opencv 3.0.0 on Debian 8 / Ubuntu 12 - 15

OpenCV 3.0.0 is out and you can't wait to get your hands on it and try it with your newly setup debian/ubuntu desktop :D Lets install it, its really quite simple! I have outlined the installation below in a simple 10-step process.

Get the opencv3.0.0 package from the opencv website(here). And place it at a convenient location, let us assume its in the /Downloads folder.

After this run the following commands:

  1. Go to the folder where the downloaded package is located.
    cd Downloads
  2. Extract the downloaded package.
    unzip opencv-3.0.0.zip
  3. Go to extracted folder.
    cd opencv-3.0.0
  4. Install the dependencies for opencv to build on your system.
    sudo apt-get install build-essentials cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev.
  5. Create a folder called 'build'.
    mkdir build
  6. Go to the folder build.
    cd build
  7. Build opencv from the downloaded package.
    sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D MAKE_INSTALL_PREFIX=/usr/local -D  WITH_TBB=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON ..
  8. Install opencv on your computer.
    sudo make
    sudo make install
  9. Go ahead and Code!! :D

Comments

Popular posts from this blog

Format a USB pendrive from terminal.

BackSpace doesn't navigate to previous directory in Nautilus?