CentOS OpenCV在LINUX系统中编译安装

系统 Linux
CentOS OpenCV是一個C/C++開源的Computer Vision(計算機視覺)函式庫,在Windows上只要直接安裝即可,但在Linux需手動編譯,本文為我在CentOS 5.1的編譯心得。

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解壓縮
[root@localhost ~]# tar -zxvf opencv-1.0.0.tar.gz

Step 3:
進入opencv目錄
[root@localhost ~]# cd opencv-1.0.0

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

Step 5:
編譯CentOS OpenCV
[root@localhost opencv-1.0.0]# make

Step 6:
安裝CentOS OpenCV
[root@localhost opencv-1.0.0]# make install

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

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

執行結果

See Also
如何在VC8編譯libdecodeqr? (C/C++) (VC++) (Image Processing)
如何在Linux下編譯libdecodeqr? (OS) (Linux) (CenOS) (Image Processing) (C/C++)
Reference
SourceForge.net : Open Computer Vision Library
劉瑞禎、于仕琪 2006,CentOS OpenCV教程,北京航空航天大學出版社
嘻嘻哈哈工作去的CentOS OpenCV安裝
OT的學習手札的Install OpenCV in Linux-2

【编辑推荐】

  1. 介绍CentOS yum使用基本进行整理
  2. Linux发行版的CentOS与RHEL有各种很复杂的关系
  3. 编辑CentOS vsftpd虚拟用户文件数据
  4. CentOS Vsftpd配置文件服务调整
  5. CentOS vsftp系统帐户安装建立
责任编辑:佚名 来源: csdn
相关推荐

2010-01-13 10:14:45

2017-08-07 16:41:39

LinuxOpenCV

2010-01-11 10:15:47

wine安装

2010-02-23 14:45:52

CentOS LEMP

2010-01-14 15:45:37

CentOS 5编译

2010-04-01 13:37:24

CentOS系统5

2011-02-24 15:04:58

ProftpdCentos

2010-05-14 16:57:31

MySQL 安装备份

2010-11-09 13:53:33

2020-11-02 11:27:09

鸿蒙LiteOS

2017-03-15 18:00:49

2010-02-02 13:26:53

Linux内核

2010-03-29 14:48:58

CentOS系统

2010-01-14 16:27:44

CentOS emes

2010-03-30 17:15:09

CentOS系统

2010-02-22 16:09:18

CentOS安装

2020-10-28 10:00:09

海思Hi3861CentOS鸿蒙LiteOS

2010-01-15 20:59:54

2010-04-01 16:04:26

CentOS系统

2010-01-13 16:55:10

CentOS PHP安
点赞
收藏

51CTO技术栈公众号