The color section is where you define the color detection settings.
Important
In the model config, there is a boolean key detect_color that can override the global
color_detection>enabled key for that specific monitor.
enabled: <string>yesorno- Default:
no
The enabled key is used to enable or disable color detection.
top_n: <int>- Default:
5
The top_n key is used to set the number of top colors to return.
spec: <string>html4orcss2orcss21orcss3- Default:
html4
The spec key is used to set the color specification to use.
Important
The spec will change how the color string is returned. html might = gray, css3 might = lightgray, etc.
The labels subsection is where you define the labels that
color detection should be run on.
Tip
If no labels are configured, color detection will run on all detected objects.
Caution
This is a list entry
- <string>
color:
enabled: no
top_n: 4
spec: html4
labels:
- car
- truck
- bus
- motorcycle
- bicycle