Home  >  Article  >  System Tutorial  >  A brief analysis of the installation of Opencv 2.4.13 version under Linux

A brief analysis of the installation of Opencv 2.4.13 version under Linux

WBOY
WBOYOriginal
2024-06-28 16:17:40569browse

浅析linux下Opencv 2.4.13版本的安装

1. Download and unzip and install the compressed package
unzip opencv-2.4.13.zip
2. Enter the folder you just decompressed and create a release folder
 cd opencv-2.4.13mkdir release
3. Install the necessary dependency libraries
sudo apt-get install build-essential cmake libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev
4. Enter the release folder, use cmake to compile the source code of OpenCV, and install the lib to the /usr/local directory
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
5. Installation
sudo make install

The above is the detailed content of A brief analysis of the installation of Opencv 2.4.13 version under Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn