I am using the detection.py script from Hailo’s GStreamer-based Python examples. Currently, when the script runs, it detects all objects recognized by the model (car, bicycle, person, etc.) and draws a bounding box around each of them.
My goal is to modify this script to detect only the ‘person’ class and to draw bounding boxes exclusively for people in the video output. How can I make this modification in the app_callback function within the detection.py file? What is the best practice for filtering the detections to draw bounding boxes only for the ‘person’ class after receiving all of them?
Thank you in advance for any guidance or code examples you can provide.