Raw Code

Real-Time People Monitoring & Queue Management

A real-time vision system that tracks people in a hall or public space and separates general occupancy from the people actually standing in a queue.

The problem

In a busy hall, a headcount isn't the number that matters. Staff need to know how many people are actually waiting in line, not just standing nearby. The system splits the space into configurable zones so queue length and general occupancy are counted separately, as it happens.

What we built

  • Zone-based detection with configurable queue and occupancy areas
  • YOLO-based person detection and counting in Python and OpenCV
  • Real-time crowd metrics for staffing and queue-management decisions

How this kind of system works

A general explanation of the technique behind the tools above. What was specific to this project is in the sections before it.

Detect people in each frame

An object detector such as YOLO looks at each video frame and draws a box around every person it finds. It runs fast enough to keep up with a live camera feed, which is why it's a common choice for counting people.

Place each person in a zone

Zones are shapes drawn over the camera view: one around the queue, one around the rest of the hall. A common approach places each person by the bottom edge of their box, where their feet meet the floor. Moving a zone is a settings change, not a retrain.

Turn counts into something staff can use

Counts per zone are smoothed over a few seconds so a single missed detection doesn't make the number jump, then shown on a screen or dashboard. Kept over time, the same counts show when queues build up across a day or a week.

What makes it hard

Changing light, crowds, and people partly hidden behind others all make detection harder. Testing on footage from the actual camera, at the busiest times, is the only way to know how a system will do in a given space.

Related service: AI Automation Consulting & Implementation.

More work like this: Computer Vision Development in Toronto.

On the blog: Finding defects when you barely have any examples of them.

Delivered by Pavlo Holubchykov, Raw Code's Lead ML/AI Developer.

Outcome metrics for this project haven't been independently verified yet — figures will be added here once confirmed rather than estimated.

More work

Want something like this built?

Book free consultation