Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (43 loc) · 1.41 KB

color.md

File metadata and controls

55 lines (43 loc) · 1.41 KB

color section

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

  • enabled: <string>
  • yes or no
  • Default: no

The enabled key is used to enable or disable color detection.

top_n

  • top_n: <int>
  • Default: 5

The top_n key is used to set the number of top colors to return.

spec

  • spec: <string>
  • html4 or css2 or css21 or css3
  • 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.

labels subsection

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.

Entry format

Caution

This is a list entry

  • - <string>

Example

color:
  enabled: no
  top_n: 4
  spec: html4
  labels:
    - car
    - truck
    - bus
    - motorcycle
    - bicycle