(tag, hue_step=0.41)
return int(255 * r), int(255 * g), int(255 * b)
Create a unique RGB color code for a given track id or class in detection (tag).

    The color code is generated in HSV color space by moving along the
    hue angle and gradually changing the saturation.

    Parameters
    ----------
    tag : int
        The unique target identifying tag.
    hue_step : float
        Difference between two neighboring color codes in HSV space (more
        specifically, the distance in hue channel).

    Returns
    -------
    (int, int, int)
        RGB color code in range [0, 255]
Create a unique RGB color code for a given track id or class in detection (tag).
Create a unique RGB color code for a given track id or class in detection ( tag ) .
def _create_unique_color_uchar(tag, hue_step=0.41):
    """Create a unique RGB color code for a given track id or class in detection (tag).

    The color code is generated in HSV color space by moving along the
    hue angle and gradually changing the saturation.

    Parameters
    ----------
    tag : int
        The unique target identifying tag.
    hue_step : float
        Difference between two neighboring color codes in HSV space (more
        specifically, the distance in hue channel).

    Returns
    -------
    (int, int, int)
        RGB color code in range [0, 255]

    """
    r, g, b = _create_unique_color_float(tag, hue_step)
    return int(255 * r), int(255 * g), int(255 * b)
def _create_unique_color_uchar ( tag , hue_step = 0.41 ) : r , g , b = _create_unique_color_float ( tag , hue_step ) return int ( 255 * r ) , int ( 255 * g ) , int ( 255 * b )