Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cv_colorfilter module

ColorFilter

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="cv_colorfilter">
3  <define name="COLORFILTER_CAMERA" value="front_camera|bottom_camera" />
4  <define name="COLORFILTER_FPS" value="0" />
5 </module>

Module configuration options

Define Options

  • name: COLORFILTER_CAMERA value: front_camera|bottom_camera
    Description: Video device to use
  • name: COLORFILTER_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 cv_colorfilter.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="ColorFilter" dir="computer_vision">
<doc>
<description>ColorFilter</description>
<define name="COLORFILTER_CAMERA" value="front_camera|bottom_camera" description="Video device to use"/>
<define name="COLORFILTER_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="ColorFilter">
<dl_setting var="listener->active" min="0" step="1" max="1" shortname="active" />
<dl_setting var="color_lum_min" min="0" step="1" max="255" shortname="y_min" />
<dl_setting var="color_lum_max" min="0" step="1" max="255" shortname="y_max" />
<dl_setting var="color_cb_min" min="0" step="1" max="255" shortname="u_min" />
<dl_setting var="color_cb_max" min="0" step="1" max="255" shortname="u_max" />
<dl_setting var="color_cr_min" min="0" step="1" max="255" shortname="v_min" />
<dl_setting var="color_cr_max" min="0" step="1" max="255" shortname="v_max" />
</dl_settings>
</dl_settings>
</settings>
<depends>video_thread</depends>
<header>
<file name="colorfilter.h"/>
</header>
<init fun="colorfilter_init()"/>
<makefile target="ap|nps">
<file name="colorfilter.c"/>
</makefile>
</module>