Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are many ways you can do this. You can either unpack the beta version and install it from source. Or clone the most updated version of 3.0.0 beta from the github page. The latter is recommended. Take a look at this link for more details -->


  1. You need to get the required dependencies first (i.e. Files that are needed for OpenCV to run). Run the following commands.

    sudo apt-get install build-essential

sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

  1. Create a directory for where you want to place these files. eg: mkdir opencv3 and enter that directory cd opencv3/

  2. Get the latest version from github using the following commands. git clone and git clone Note that opencv_contrib contains additional functionality via it's own modules.

  3. Enter the cloned openCV folder and make a directory called build (mkdir build) and enter that directory (cd build) then run the following command. --> cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. where the install prefix is where you want files to be installed and the opencv_extra_modules_path provides the path to where the opencv_contrib functionality is located. You can add more options based on your needs. Take a look at the link for that.

  4. Run make, then run sudo make install. This should install OpenCV 3.0.0 beta.