How To

How to install OpenCV 3.3 on Ubuntu & Linux Mint

OpenCV 3.3 the most recent release, is an open-source computer vision and machine learning software library, that is built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Lets take a quick look this latest release, before we proceed to install OpenCV on Ubuntu.

install opencv

OpenCV 3.3 Changelog

  • Support for hardware-accelerated video encoding as well as decoding using Intel GPUs through Intel Media SDK for Linux available
  • High-level API has been modified and is even more convenient now
  • The regression tests have been expanded, some new tests have been added. Now, there are 46 of them
  • Many bugs have been fixed in Torch and TF loaders, as well as in some processing layers
  • Furthermore, performance has been substantially improved. Layer fusion has been implemented and some performance-critical layers have been optimized using AVX, AVX2, SSE and NEON. An external BLAS (OpenBLAS, MKL, ATLAS) is not needed anymore
  • Added also is new samples in C++ and Python
  • Added also is the optional Halide backend. It can accelerate OpenCV DNN on GPU when the GPU is fast enough
  • [see changelog for full details]
READ  Install Apache OpenOffice on Ubuntu

Download OpenCV 3.3.0

Install Opencv 3.3 on Ubuntu 16.04

sudo apt-get -y install libopencv-dev build-essential cmake git libgtk2.0-dev pkg-config python-dev python-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev libtbb-dev libqt4-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip

mkdir opencv

cd opencv

wget -O


cd opencv-3.3.0

mkdir build

cd build


make -j $(nproc)

sudo make install

sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/'

#created needed linking
sudo ldconfig
  • Reboot your machine and run following command to check installed version
pkg-config --modversion opencv

How to uninstall it from Ubuntu 16.04

sudo apt-get remove opencv

About the author


A passionate Linux and Open Source user. In my spare time, I love developing mobile games for fun (You can check my games out iOS Store | Google Play Store) and also spend time contributing to the Linux community.

Leave a Reply

3 Comments on "How to install OpenCV 3.3 on Ubuntu & Linux Mint"

Notify of
Sort by:   newest | oldest | most voted

Thanks for these instruction! However, how can I adjust these command to install this inside a conda environment and create bindings to the python version from the conda environment?


Will this support ffmpeg. If I would like to have ffmpeg support, what should I modify in your instructions. Planning to install it on a python 3.6 virtual environment (linux mint 18.1).