This is a simple script which has different functions that lets users draw different types of visualizations. Useful for instances when visualizing objects after object detection.
There are optional functions that can draw multiple bounding boxes and/or write multiple labels on the same image, but it is advisable to use the above functions in a loop in order to have full control over your visualizations. Nonetheless, the optional functions are as follows:
- draw_rectangles(..., bboxes, ...)
- add_labels_to_rectangles(..., labels, bboxes, ...)
- add_T_labels_to_rectangles(..., labels, bboxes, ...)
- draw_flags_with_labels(..., labels, bboxes, ...)
bboxes
and labels
are lists in the above examples.