Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The operation method of installing opencv3.0.0 in ubuntu14.04

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Install dependencies

Direct compilation and installation of opencv will generally report an error, and dependent tools need to be installed first.

$sudo apt-get install build-essential cmake libopencv-dev libgtk2.0-dev pkg-config python-dev python-numpy

two。 Download opencv3 (either of the two versions)

$mkdir ~ / opencv$ cd ~ / opencv$ wget https://github.com/Itseez/opencv/archive/3.0.0-alpha.zip-O opencv-3.0.0-alpha.zip$ unzip opencv-3.0.0-alpha.zip$ cd opencv-3.0.0-alpha//$ wget https://github.com/Itseez/opencv/archive/3.0.0-beta.zip//$ unzip opencv-3.0.0-beta.zip//$ cd opencv-3.0.0-beta$ mkdir release$ cd release

3. Compile and install

$cmake-D CMAKE_BUILD_TYPE=RELEASE-D CMAKE_INSTALL_PREFIX=/usr/local-D WITH_TBB=ON-D BUILD_NEW_PYTHON_SUPPORT=ON-D WITH_V4L=ON-D WITH_QT=ON-D WITH_OPENGL=ON-D WITH_CUDA=OFF. / / error will be reported if the video card is not closed (- D WITH_CUDA=OFF) $make-j / / multicore processor compiles $sudo make install faster than the default make using only one core

4. Configure environment variables

$sudo / bin/bash-c 'echo "/ usr/local/lib" > / etc/ld.so.conf.d/opencv.conf'$ sudo ldconfig

The above ubuntu14.04 installation opencv3.0.0 operation method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report