Install opencv on Centos

研究centos 有很长一段时间了,一直没有写过这方面的感觉,今天在看到网友的一篇文章时,结合亲身体会就下面安装opencv的一些步骤与大家共享。

CentOS OpenCV已被广泛应用但是也在不断的更新,这里介绍CentOS OpenCV安装设置使用,帮助大家安装更新CentOS OpenCV系统。如何在Linux下編
譯CentOS OpenCV? (OS) (Linux) (CentOS) (Image Processing) (C/C++)
Abstract
CentOS OpenCV是一個C/C++開源的Computer Vision(計算機視覺)函式庫,在Windows上只要直接安裝即可,但在Linux需手動編譯,本文為我在
CentOS 5.1的編譯心得。

Introduction
Step 1:
至SourceForge.net : Open Computer Vision Library下載Linux版的opencv-1.0.0.tar.gz。

Step 2:
將opencv-1.0.0.tar.gz解壓縮
[[email protected] ~]# tar -zxvf opencv-1.0.0.tar.gz

Step 3:
進入opencv目錄
[[email protected] ~]# cd opencv-1.0.0

Step 4:
偵測作業環境,設定OpenCV安裝在/usr/local/opencv目錄下
[[email protected] opencv-1.0.0]# ./configure --prefix=/usr/local/opencv

Step 5:
編譯CentOS OpenCV
[[email protected] opencv-1.0.0]# make

Step 6:
安裝CentOS OpenCV
[[email protected] opencv-1.0.0]# make install

Step 7:
更新動態連結庫
[[email protected] opencv-1.0.0]# vi /etc/ld.so.conf
加入
include ld.so.conf.d/*.conf
/usr/local/opencv/lib
存檔後執行
[[email protected] opencv-1.0.0]# ldconfig

Step 8:
測試CentOS OpenCV是否安裝成功
[[email protected] opencv-1.0.0]# cd samples/c
[[email protected] c]# gcc -I/usr/local/opencv/include/opencv -L/usr/local/opencv/lib -lhighgui -lstdc++ drawing.c -o drawing
[[email protected] c]# ./drawing

时间: 2024-11-09 00:55:22

Install opencv on Centos的相关文章

How to Install MySQL on CentOS 7

How to Install MySQL on CentOS 7 Updated Thursday, August 27th, 2015 by Linode Use promo code DOCS10 for $10 credit on a new account. Try this Guide Contribute on GitHub View Project | View File | Edit File MySQL is a popular database management syst

Install OpenCV in Windows for Python

Here I will tell you how to install OpenCV 2.4x in Windows  for Python 2.7. Pre-requisites ( need to be downloaded ) : Python : Download latest version of Python 2.7 from Python site.Numpy : Download Numpy for Python 2.7 from here.OpenCV 2.4 : Downlo

How to install MP4box on CentOS 6

How to install MP4box on CentOS 6 MP4Box is a MP4 multiplexer. It can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container. The end result is a compliant MP4 stream. It can also extract streams from a .

Install Ceph on CentOS 6.5

vi /etc/yum.repos.d/ceph-extras.repo[ceph-extras]name=Ceph Extras Packagesbaseurl=file:///ceph/ceph-extrasenabled=1priority=2gpgcheck=0type=rpm-md [ceph-extras-noarch]name=Ceph Extras noarchbaseurl=file:///ceph/ceph-extras-noarchenabled=1priority=2gp

install opencv 2.4.10 with issue :"nvcc fatal : Unsupported gpu architecture 'compute_11'"

issue: nvcc fatal   : Unsupported gpu architecture 'compute_11'CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message):  Error generating/home/smie/Documents/opencv2.4.11/build/modules/core/CMakeFiles/cuda_compile.dir/__/dyna

Install ssdb-rocks on CentOS 6

Install ssdb-rocks on CentOS 6 C.C.  发表于 2014年08月10日 20:14 | Hits: 649 为了优化节操精选的弹幕系统,打算更换到Facebook的RocksDB测试,为了支持多台Web Server的场景,打算直接上ssdb-rocks来完成目的,如果有这个需求的朋友还遇到过坑,可以参考一下步骤: RocksDB需要的依赖 yum install zlib zlib-devel bzip2 bzip2-devel gflags gflags-d

Install transmission-daemon on CentOS

Fail to install rTorrent on CentOS 5.4, just install transmission-daemon libevent wget --no-check-certificate https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz tar xzf libevent-2.0.22-stable.tar.gz cd l

Install nginx-clojure on CentOS 7

Install nginx-clojure on CentOS 7 1. install open-jdk-7 sudo yum install java-1.7.0-openjdk-devel 2. download nginx-clojure https://nginx-clojure.github.io/quickstart.html 3. download clojure 1.6.0.jar http://clojure.org/downloads 4. config nginx.con

Nagios 4.0.1 Released – Install on RHEL/CentOS 6.x/5.x and Fedora 19/18/17

http://www.tecmint.com/install-nagios-in-linux/ Nagios 4.0.1 Released – Install on RHEL/CentOS 6.x/5.x and Fedora 19/18/17