This article provides two ways to install:
1. Manual installation using the official website installation package;
2. Install automatically using the install script on GitHub
1. Manually install using the official website installation package 1. Download opencv2.4.9
: http://opencv.org/
Now the latest version of the Opencv3.0 Alpha version has come out, you can also try.
2. Install the necessary dependent libraries
sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev Libtiff4-dev Libswscale-dev libjasper-dev Libopencv-dev pkg-config python-dev python-numpy
3. Installing OPENCV
Switch to the directory where the OPENCV installation package is located:cd/home/fishce
Unzip the downloaded OPENCV installation package:Unzip Opencv-2.4.9.zip
Go to unzip directory:CD opencv-2.4.9
New Release directory:mkdir release
Enter release:CD release
Cmake-d cmake_build_type=release-dcmake_install_prefix=/usr/local.
Make
sudo make install
4. Configure the Library
Open/etc/ld.so.conf.d/opencv.conf
sudo vim/etc/ld.so.conf.d/opencv.conf
Enter/usr/local/lib in the file
Save exit
sudo ldconfig
Since this opencv2.4.9 installation is complete!
2. Install using the GitHub installation script 1. Download the installation script
: Https://github.com/jayrambhia/Install-OpenCV
2. Unzip the script and enter the appropriate installation folder for the system.
Unzip Install-opencv-master.zip
CD Install-opnecv-master/ubuntu
3. Install the dependent libraries and install them
sudo./dependencies.sh
sudo 2.4/opencv2_4_9.sh
It is recommended to install it in the second way, which is simple and automatic. If the installation is unsuccessful, you can consider the first way.
Reference blog:
Http://www.cnblogs.com/jeakon/archive/2013/05/08/3066469.html
http://my.oschina.net/u/1757926/blog/293976
http://blog.csdn.net/a1429331875/article/details/31539129
Ubuntu14.04+cuda6.5+opencv2.4.9+matlab2013a+caffe Configuration Record (iii)--Installation Opencv2.4.9