opencv notes

参考:

http://opencv.willowgarage.com/wiki/Ubuntu_Packages

https://help.ubuntu.com/community/OpenCV

 

使用opencv ppa在ubuntun上安装:

  $ sudo add-apt-repository ppa:gijzelaar/opencv2
  $ sudo apt-get update

 

To install it using the terminal, type the following sequence of commands:

$ sudo su

// --下面三行非必须--
$ sudo apt-get install build-essential
$ sudo apt-get install libavformat-dev
$ sudo apt-get install ffmpeg

// --------------------------
$ sudo apt-get install libcv2.1 libcvaux2.1 libhighgui2.1 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev

 

To compile and view the examples, type:

$ cp -r /usr/share/doc/opencv-doc/examples .
$ cd examples
$ cd c
$ sh build_all.sh

This will build most/all of the examples. You will also get the python examples, which can be compiled with python filename.py

 

 

你可能感兴趣的:(opencv)