Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
video_capture module

Capture images from video device on the internal memory (JPEG, full size, best quality)

Images can be saved by pressing the strip button, using the GCS settings panel or with the 'video_capture_shoot' function.

Additional data (GPS location) can be included in the Exif header by including the video_exif module.

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="video_thread"/>
2 <module name="video_capture">
3  <define name="VIDEO_CAPTURE_CAMERA" value="front_camera|bottom_camera" />
4  <define name="VIDEO_CAPTURE_PATH" value="/data/video/images" />
5  <define name="VIDEO_CAPTURE_JPEG_QUALITY" value="99" />
6  <define name="VIDEO_CAPTURE_FPS" value="0" />
7 </module>

Module configuration options

Define Options

  • name: VIDEO_CAPTURE_CAMERA value: front_camera|bottom_camera
    Description: Video device to use
  • name: VIDEO_CAPTURE_PATH value: /data/video/images
    Description: Location to save images
  • name: VIDEO_CAPTURE_JPEG_QUALITY value: 99
    Description: JPEG quality of images
  • name: VIDEO_CAPTURE_FPS value: 0
    Description: The (maximum) frequency to run the calculations at. If zero, it will max out at the camera frame rate

Dependencies

Module functions

Init Functions

These initialization functions are called once on startup.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw video_capture.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="video_capture" dir="computer_vision">
<doc>
<description>
Capture images from video device on the internal memory (JPEG, full size, best quality). Images can be saved by
pressing the strip button, using the GCS settings panel or with the 'video_capture_shoot' function.
Additional data (GPS location) can be included in the Exif header by including the video_exif module.
</description>
<define name="VIDEO_CAPTURE_CAMERA" value="front_camera|bottom_camera" description="Video device to use"/>
<define name="VIDEO_CAPTURE_PATH" value="/data/video/images" description="Location to save images"/>
<define name="VIDEO_CAPTURE_JPEG_QUALITY" value="99" description="JPEG quality of images"/>
<define name="VIDEO_CAPTURE_FPS" value="0" description="The (maximum) frequency to run the calculations at. If zero, it will max out at the camera frame rate"/>
</doc>
<settings>
<dl_settings>
<dl_settings name="video">
<dl_setting var="video_capture_take_shot" min="0" step="1" max="1" shortname="take_shot"
module="computer_vision/video_capture">
<strip_button name="Video Save Image" icon="digital-camera.png" value="1" group="cv"/>
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<depends>video_thread</depends>
<header>
<file name="video_capture.h"/>
</header>
<init fun="video_capture_init()"/>
<makefile target="ap">
<file name="video_capture.c"/>
</makefile>
</module>