Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1.75 KB

README.md

File metadata and controls

43 lines (38 loc) · 1.75 KB

run this code

install opencv with contrib module

official document useful to install opencv with contrib module https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html

attention

I should not put the video that this repository deal with, if you would like to run this code and see what actually this code do, please contect me with email, 1329239119@qq.com

dependence

  1. We need CMake to configure the installation, GCC for compilation, Python-devel and Numpy for building Python bindings etc.

    • sudo apt-get install cmake
    • sudo apt-get install gcc g++
  2. Next we need GTK support for GUI features, Camera support (v4l), Media Support (ffmpeg, gstreamer) etc.

    • sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev
    • sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
  3. to support gtk2

    • sudo apt-get install libgtk2.0-dev
  4. to support gtk3

    • sudo apt-get install libgtk-3-dev
  5. install ffmpeg

    • sudo apt install ffmpeg

install opencv

  1. Download and unpack sources

install boost

boost is needed to run the code
 - sudo apt-get install libboost-dev

build

in the code root directory, 
    - mkdir build
    - cd build
    - cmake ..
    - make 
    - ./app