Case study

people_counter: live venue occupancy with computer vision

Live occupancy counting for bars and venues in Barcelona, where going over the licensed capacity means a fine.

frames of video stored or sent off the premises.
0
second between counts, so the number on the display stays live.
1
camera works: a webcam, an IP camera or a recorded video.
Any
The problem

Knowing the real number in the room

A venue’s licensed capacity is a hard limit, and the number of people inside changes all night. Staff need the real figure at a glance, without counting by hand at the door.

What we built

A camera, a Raspberry Pi and a live count

A camera and a Raspberry Pi count the people in the room every second with a YOLOv8 computer-vision model, and show the number and the night’s peak on a display the staff can see. The count can also feed a sign, a log or an alert.

The video is processed on the device and never stored or sent anywhere, so no footage of customers leaves the building.

What the camera sees

A bar terrace, every person boxed and counted · simulated scene

people_counter on a simulated bar terrace in Barcelona at night: twenty-eight people, each in a numbered green box, with a running total of 28 in the corner.

A simulated scene, not a client’s venue: the detections and the total are how the counter marks up what it sees.

What the staff see

The 16×2 panel the counter drives, on the bar

PEOPLE: 47 PEAK: 52 Source: rtsp://cam-01 Uptime: 04:12:38 FPS: 11.4

Drawn from the panel the Pi version renders. It can also drive a real LCD on the bar, or send the count on to a sign or a log.

Read the case study

Results

A live number, and no footage

Staff see the live count and the night’s peak at a glance, updated every second, with any camera the venue already has.

Technology

What it is built with

Built with
  • Python
  • YOLOv8
  • OpenCV
  • Raspberry Pi
Get in touch

Tell us what you need

Describe the problem and imagine the solution you want. We’ll come back with the right answer and the best product for you.