aivision_color_s_t struct

This structure contains the parameters used by the AI Vision Sensor to define a color.

hue_range and saturation_range are ranges for hue and saturation that are acceptable. For example, if a large hue range is specified for a blue color, colors that are more magenta or teal may be detected as "blue".

Public variables

uint8_t id
id of color descriptor, can range from 1-7
uint8_t red
red value of color
uint8_t green
green value of color
uint8_t blue
blue value of color
float hue_range
range by which detected color's hue can vary from the base color, can range from 1-40
float saturation_range
range by which detected color's saturation can vary from base color, can range from 0.1-1