ubuntu14.04安装opencv3.0

  1. sudo apt-get update 
    sudo apt-get upgrade
  2. 搭建C/C++编译环境:

     

    sudo apt-get install build-essential
    安装关联库:

     

    sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
    sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  3. http://yunpan.cn/cQDsTcyKwfdxR (提取码:1a4b)
  4. 下载后解压,进入opencv-3.0.0-beta中,键入如下命令

    cmake .
    sudo make
    sudo make install
    sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
    sudo ldconfig
  5. 切换到OpenCV3.0的samples目录下面,并编译samples程序
    cd opencv/opencv-3.0.0-beta/samples/
    sudo cmake .
    sudo make -j4
    cd cpp/
    ./cpp-example-facedetect

    会自动打开笔记本上的摄像头捕捉人脸.

posted @ 2015-07-02 16:27  Magnum Programm Life  阅读(287)  评论(0编辑  收藏  举报