7.10.2. object_detector.visualize_label_image
- object_detector.visualize_label_image(image, label_image)
Visualizes the label image.
Visualizes the label image. The label image is visualized by coloring each object with a unique color. The color is determined by the label of the object. The background pixels are taken from the original image.
- Parameters:
image (np.ndarray) – The original image. Used to get the background pixels.
label_image (np.ndarray) – The label image. The labels are used to color the objects.
- Returns:
The image with the labels visualized.
- Return type:
np.ndarray