Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 884 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 884 Bytes

Simple Raspberry Pi MMAL project

  • main.c - just displays camera preview until ctrl-c

  • still_capture.c - captures still jpeg image with text overlay

  • video_record.c - records video with text overlay, outputs h264

      -t 3 - record 3 seconds of video
      -s "camera 1" - overlay text
    

Build

  1. Install pre-required packages

     $ sudo apt-get install cmake libopencv-dev
    
  2. Place Raspberry Pi userland project in /home/pi/src/raspberrypi/userland

     $ mkdir -p /home/pi/src/raspberrypi
     $ cd /home/pi/src/raspberrypi
     $ git clone --depth 1 https://github.com/raspberrypi/userland.git
    
  3. Build pre-required libraries

     $ make -C /opt/vc/src/hello_pi/libs/vgfont
    
  4. Build project

     $ mkdir build
     $ cd build
     $ cmake ../
     $ make