7.10.1. object_detector.check_label_img
- object_detector.check_label_img(label_img)
Checks the consistency of the label image.
The consistency checks are: - Check if the label image has a height and width greater than 0. - Check if the label image encoding is supported (8SC1, 16SC1 or 32SC1).
- Parameters:
label_img (sensor_msgs.msg.Image) – The label image.
- Raises:
ValueError – If the label image is inconsistent.