def _get_annotation_color(self, track: TrackedDetection) -> ColorT:
    color = self.track_color.get(track.track_id)
    if (color is not None):
        return color
    color_pos = (len(self.track_color) % len(self.colors))
    color = self.colors[color_pos]
    self.track_color[track.track_id] = color
    return cast(ColorT, color)
def _get_annotation_color(self, track: TrackedDetection) -> ColorT:
    color = self.track_color.get(track.track_id)
    if (color is not None):
        return color
    color_pos = (len(self.track_color) % len(self.colors))
    color = self.colors[color_pos]
    self.track_color[track.track_id] = color
    return cast(ColorT, color)