How to install openCV in Ubuntu
NumPy: This is a dependency of OpenCV’s Python bindings. It provides
numeric computing functionality, including efficient arrays.
SciPy: This is a scientific computing library that is closely related to NumPy.
It is not required by OpenCV but it is useful for manipulating the data in
OpenNI: This is an optional dependency of OpenCV. It adds support for
certain depth cameras, such as Asus XtionPRO.
SensorKinect: This is an OpenNI plugin and optional dependency of
OpenCV. It adds support for the Microsoft Kinect depth camera
sudo apt-get update
sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install libopencv-*
sudo apt-get install python-opencv