关键字 opencv2.2 ubuntu11.04 ffmpeg cmake
安装opencv方法有简单有容易的,看你喜欢那种。
1. 最容易的,不过难以跟上时代步伐。
看看这篇(http://blog.csdn.net/moc062066/article/details/6544234),或者这篇,有点过时但是很实用,点这里。
缺点:你只能选择官网已经编译好好的版本(例如opencv2.1),如果你这时候想要用到opencv2.2或者opencv2.3,那这种方法就无能为力了。优点是:方便、快捷、不需要理会太多东西。
2. 比较麻烦,下载源代码,编译,安装。
2.1安装前的准备,安装一下必须的东西。
First, you need to install many dependencies, such as support for reading and writing image files, drawing on the screen, some needed tools, etc… This step is very easy, you only need to write the following command in the Terminal
在终端输入下如内容,复制粘贴就行了:
sudo
apt-get
install
build-essential libgtk2.0-dev libjpeg62-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev