华的专栏

讨论与进步

Debian下安装

查询OpenCV相关软件包

$ apt-cache search opencv
libcv-dev - development files for libcv
libcv1 - computer vision library
libcvaux-dev - development files for libcvaux
libcvaux1 - computer vision extension library
libhighgui-dev - development files for libhighgui
libhighgui1 - computer vision GUI library
opencv-doc - OpenCV documentation and examples
python-opencv - Python bindings for the computer vision library

//以上内容可能是没有及时更新
//用命令行$ apt-cache search opencv在ubuntu(11.04LTS)找到的最新的opencv版本是2.1
harpia - Image Processing/Computer Vision Automatic Prgm. Tool
libcv-dev - development files for libcv
libcv2.1 - computer vision library
libcvaux-dev - development files for libcvaux
libcvaux2.1 - computer vision extension library
libhighgui-dev - development files for libhighgui
libhighgui2.1 - computer vision GUI library
opencv-doc - OpenCV documentation and examples
python-opencv - Python bindings for the computer vision library


在这里,OpenCV的库CxCore和Cv都被包含入Deb包libcv中。

安装相关软件包

如果只是用来运行OpenCV程序,仅需安装libcv1,libcvaux1,libhighgui1:

apt-get install libcv1 libcvaux1 libhighgui1

如果你要使用OpenCV来编写程序,那么还需要安装libcv-dev,libcvaux-dev,libhighgui-dev包。

apt-get install libcv-dev libcvaux-dev libhighgui-dev

文档在opencv-doc包中,python-opencv是OpenCV的Python语言包,可根据需要安装。

测试安装包

测试是否安装成功,你可以使用以下的命令行编译位于源代码包中的drawing.c例子:

g++ drawing.c `pkg-config opencv --libs --cflags opencv` -o drawing

成功编译后你应该能够可以执行./drawing看到highgui输出窗口的结果了.

阅读更多
文章标签: linux opencv
个人分类: opencv
想对作者说点什么? 我来说一句

debian安装

2013年09月16日 21KB 下载

没有更多推荐了,返回首页

不良信息举报

Debian下安装

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭