# draugr.opencv_utilities.drawing.draw_boxes.draw_bounding_boxes

draugr.opencv_utilities.drawing.draw_boxes.draw_bounding_boxes(image: ~typing.Union[~numpy.ndarray, ~PIL.Image.Image], boxes: ~numpy.ndarray, *, labels: ~typing.Optional[~numpy.ndarray] = None, scores: ~typing.Optional[~numpy.ndarray] = None, categories: ~typing.Optional[~typing.Sequence[str]] = None, outline_width: int = 2, outline_alpha: float = 0.5, score_color_fill: bool = False, score_font: <module 'PIL.ImageFont' from '/home/heider/miniconda3/envs/py38/lib/python3.8/site-packages/PIL/ImageFont.py'> = <PIL.ImageFont.ImageFont object>, score_format: str = ': {:.2f}', mode='RGBA') → ndarray

  Draw bounding boxes(labels, scores) on image Args: image: numpy array image, shape should be (height, width, channel) boxes: bboxes, shape should be (N, 4), and each row is (xmin, ymin, xmax, ymax), NOT NORMALISED! labels: labels, shape: (N, ) scores: label scores, shape: (N, ) class_name_map: list or dict, map class id to class name for visualization. width: box width alpha: text background alpha fill: fill box or not font: text font score_format: score format Returns: An image with information drawn on it.