Queue Management Using RPI5 + Hailo

Hi all,

I am working on a project where I need to track vehicles in a specific zone and calculate their wait time. I am using a custom-trained YOLO model. Are there any guides/examples on how to create these zones/ calculate wait time?

Currently, our examples don’t include zones or wait time. These features aren’t specific to Hailo, since the calculations would need to be done in post-processing on the host CPU rather than on the Hailo accelerator. You can implement this logic in your own post-processing code.

For zones, I recommend starting with something simple, such as using the object’s center point to determine whether it lies within a zone. Later you can refine this to check whether the entire object is inside the area or just overlapping it. The best approach depends on the camera angle; for example, a top-down view reduces ambiguity.

For wait time, you should track each object and assign timestamps so you can calculate how long it remains in a given zone.

Chat GPT can likely provide step-by-step guidance on these topics.

1 Like

Hi @Nityam_Patel

You can see how to do zone counting using PySDK here: hailo_examples/examples/009_zone_counting.ipynb at main · DeGirum/hailo_examples. To calculate wait times, you need to enable tracking as well. We are working on such an example now and will share our solution shortly.

1 Like

Hi @Nityam_Patel , We just wrote a notebook using zone counter focused on calculating wait-time in the queue. We are still adding more stats but you can find the notebook here - hailo_examples/examples/Queue_length_tracker.ipynb at wait_time_tracker · DeGirum/hailo_examples

Let me know if this helps or if you are looking for more statistics.

1 Like

Thank you guys, appreciate it!

1 Like