All work

17AI · Computer vision · Real time

Aforo

Computer vision people counter

Turns the cameras a site already has into live people counters: entries, exits and occupancy per zone, with alarms and a privacy mode, on its own hardware.

Concept project · fictional brand and sample dataApp in Spanish

38
automated tests passing
95.5 %
line-count accuracy vs hand-counted crossings
0
false counts, at every analysis rate tested
22
crossings counted by hand as the ground truth

The brief

Transport hubs and shopping centres need to know how many people are inside right now, for crowd safety and fire-code capacity, plus how many came in and when the peaks are. Counting is usually done with hand clickers, turnstiles that cover only some doors, or cloud video-analytics subscriptions that send footage of people to a third party.

What I built

  • Control room with a 2×2 camera wall and a main feed with live boxes, track IDs, the counting line and the zone, over WebSockets
  • People detection with YOLOv8n and ByteTrack tracking on the CPU, from video files or RTSP/HTTP streams
  • Line counter for entries and exits with a dead band, debounce and cooldown, and occupancy per zone with dwell time
  • Occupancy alarms with hysteresis that an operator on shift confirms with a note; a lost signal raises its own alert
  • Privacy mode that pixelates people on the server before a frame leaves the machine
  • Analytics (per-minute flow, last 24 h vs the 14-day average, weekday × hour peaks), a live camera editor and a benchmark page

The decision that mattered

One shared model, scheduled by deadline

A single YOLOv8n model runs on one inference thread with earliest-deadline-first scheduling: the camera on the main screen is analysed at up to 12 fps and the wall tiles at 2 fps, so no tile starves and the main count stays precise on a plain CPU. Frame rate is what decides line-count accuracy here: 95.5 % at 12.5 fps against 81.8 % at 5 fps, with no false counts at any rate.

Screens

Control room: main feed, camera wall, counters and gauge
Privacy mode: people pixelated on the server
Occupancy alert confirmed by an operator
Camera editor: drag the line and zone on the live image
Analytics: flow per minute and weekly peaks
Counting accuracy and CPU benchmark
Alert log

Have a project in mind?

Send the brief through Workana. The reply comes with questions and a written scope before any quote, so the price reflects the actual work.

Hire me on Workana

What helps in a brief: what the finished thing must do, what already exists (site, store, server, accounts), your deadline and budget range, and two or three references you like.