http://opencv.org/downloads.html(You can download the newest version of opencv)
To install OpenCV using the terminal on Ubuntu, you will need some dependencies packages first
$ su -
if your password is not validated then use the command
$ sudo -s
before installing any software its preferred to update using apt-get.
# apt-get update
dependencies packages for OpenCV are like
# apt-get install build-essential libavformat-dev x264 v4l-utils ffmpeg libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev
OpenCV should be installed in the given path of the Directory
Download Opencv and untar the package we downloaded
$ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.7/opencv-2.4.7.tar.gz/download
$ tar -xzvf opencv-2.4.7.tar.gz
$ cd opencv-2.4.7
Now you will need root privileges to compile and install opencv
# mkdir build
# cd build
# cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
# make
# make install
You may also want to compile and view examples,to view that and to practice you can refer in the path
/usr/share/doc/opencv-doc/examples .
so now you can work with opencv ;)
To install OpenCV using the terminal on Ubuntu, you will need some dependencies packages first
$ su -
if your password is not validated then use the command
$ sudo -s
before installing any software its preferred to update using apt-get.
# apt-get update
dependencies packages for OpenCV are like
# apt-get install build-essential libavformat-dev x264 v4l-utils ffmpeg libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev
OpenCV should be installed in the given path of the Directory
Download Opencv and untar the package we downloaded
$ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.7/opencv-2.4.7.tar.gz/download
$ tar -xzvf opencv-2.4.7.tar.gz
$ cd opencv-2.4.7
Now you will need root privileges to compile and install opencv
# mkdir build
# cd build
# cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
# make
# make install
You may also want to compile and view examples,to view that and to practice you can refer in the path
/usr/share/doc/opencv-doc/examples .
so now you can work with opencv ;)