mmcv.visualization.color_val¶ mmcv.visualization.color_val(color: Union[mmcv.visualization.color.Color, str, tuple, int, numpy.ndarray]) → tuple[source]¶ Convert various input to color tuples. Parameters color (Color/str/tuple/int/ndarray) – Color inputs Returns A tuple of 3 integers indicating BGR channels. Return type tuple[int]