[LabelAnnotator, RichLabelAnnotator, VertexLabelAnnotator] - allow text_color
to be Union[Color, ColorPalette]
#1384
Labels
text_color
to be Union[Color, ColorPalette]
#1384
Description
LabelAnnotator
,RichLabelAnnotator
, andVertexLabelAnnotator
currently allow defining the background color asUnion[Color, ColorPalette]
. When the background color is a singleColor
, all boxes are drawn with the same color. If the background color is aColorPalette
, the detection index, class_id, or tracker_id is mapped to the corresponding color from the palette. Unfortunately, this functionality is not currently available fortext_color
.Update
LabelAnnotator
,RichLabelAnnotator
, andVertexLabelAnnotator
to enable definingtext_color
asUnion[Color, ColorPalette]
and implement the same mechanism as for the background color.Additional
The text was updated successfully, but these errors were encountered: