Capture images from video device on the internal memory (JPEG, full size, best quality)
No detailed description...
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" />
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
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)
</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"/>
</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>