How to change font, size, and color of bounding box labels in HailoOverlay

Hi ,

I’m working on a project using the Hailo pipeline with hailooverlay to display detection results.

I’d like to know how to:

  1. Change the font of the text.

  2. Adjust the sizeof the labels.

  3. Modify the color of the text associated with the bounding boxes.

I saw that hailooverlay handles the display, but I haven’t found clear documentation on how to customize these parameters.

Thanks in advance for your advice and code examples!

The hailooverlay element has a few parameters or element properties like font-thickness and line-thickness that you can change when you create the GStreamer pipeline string. e.g. the following command will remove the confidence score from the overlay.

... hailooverlay show-confidence=false ...

You can use the following command to see the Element Properties:

gst-inspect-1.0 hailooverlay

For all other changes you will need to modify the GStreamer element and recompile it. The sources are in our GitHub repository:

GitHub - Tappas - Hailo - Plugins - Overlay

Hi @ALEXFER

Here is an alternative approach that uses supervision library. At DeGirum (a SW partner of Hailo), we developed PySDK, a python package, to make application development easy with Hailo devices. PySDK allows changing overlay properties easily: you can take a look at an example here: hailo_examples/examples/013_overlay_effects.ipynb at main · DeGirum/hailo_examples. if you want even more flexibility in overlay, we have recently made an example that shows how to use PySDK with Supervision. You can see an example here: hailo_examples/examples/021_supervision_integration.ipynb at main · DeGirum/hailo_examples

Hope this helps.