Native Bounding Boxes

Hey all :slight_smile: I would like to be able to modify the existing bounding boxes in the object_detection.py script, displaying my own artefacts for object recognition. I am looking in:

“hailo-rpi5-examples/venv_hailo_rpi_examples/python3.11/site-packages/hailo_apps/*”

But cannot find the code responsible for “drawing” these boxes. Can anyone point me in the right direction? Or is this happening at a lower-level in the code (C++ bindings)?

Any help appreciated : D

Welcome to the Hailo Community!

The bounding boxes are drawn by a GStreamer element called hailooverlay. It is precompiled and allows some modifications by setting parameters. Use the following command to see all options:

gst-inspect-1.0 hailooverlay

The element is configured in the the following file:

GitHub - hailo-apps-infra - gstreamer_helper_pipelines.py

If you want additional changes you can replace or modify the GStreamer hailooverlay element. It is part of the TAPPAS GStreamer elements. They are open-source and the source code is available in our GitHub Tappas repository:

GitHub - Tappas - plugins - overlay