Search This Blog

Friday, June 20, 2014

Installing OpenCV on Ubuntu

opencv logo
To install OpenCV (manual build) in Windows refer to this post (for installation without Intel TBB support) or this post (for installation with Intel TBB support)
I have given three different methods to install OpenCV in Ubuntu. They are presented in increasing order of difficulty (I know you're not going to read past the first one).

Method 1: Using apt-get (Simplest method)

The simplest method to install OpenCV in Ubuntu is by using apt-get. The only problem with this method is that it does not installs the latest OpenCV build. Ubuntu repositories have slightly older versions of OpenCV.

But if that's not a problem to you, just type the following in your terminal:

$ sudo apt-get install libopencv*

Method 2: Use installation script