Home > System Tutorial > LINUX > 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
Release: 2024-06-28 16:17:40
Original
741 people have browsed it

浅析linux下Opencv 2.4.13版本的安装

1. Download and unzip and install the compressed package
unzip opencv-2.4.13.zip
Copy after login
2. Enter the folder you just decompressed and create a release folder
 cd opencv-2.4.13mkdir release
Copy after login
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
Copy after login
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 ..
Copy after login
5. Installation
sudo make install
Copy after login

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!

source:linuxprobe.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template