OpenCV (Open Source Computer Vision Library) is an open source library of programming functions developed by Intel. It is free for commercial and research use under the open source BSD license. The library is cross-platform, will run on Mac OS X, Windows and Linux. It focuses mainly towards real-time image processing routines and algorithms for software development.
To install OpenCV using the terminal on Ubuntu, you will need some dependencies packages first
OpenCV should be installed in /usr/local/ Installation Directory
You can download the newest version of opencv at http://opencv.org/downloads.html
Download Opencv and untar the package we downloaded
Now you will need root privileges to compile and install opencv
You may also want to compile and view examples