License YOLO
Guides

How People Counting and Occupancy Analytics Actually Work

How people counting and occupancy analytics work: comparing WiFi, ToF, thermal and camera-based vision methods, the products available, and how to build it.

Miles Deans12 min read

Listen to this article

Overhead view of people passing ticket gates in a bright concourse, detected by Ultralytics YOLO26, beside the four people-counting measurements: entries, occupancy, dwell time and queues

Most people-counting projects go wrong before any sensor is chosen, because "how many people" is four different measurements and teams specify the wrong one. Entries over a day, people present right now, how long each stayed, and how many are waiting in a queue require different sensing, different placement and different accuracy. A system that counts entries accurately can report occupancy badly, and a system tuned for occupancy may miss short entries entirely.

This guide separates those measurements, compares the sensing methods honestly (WiFi and BLE, infrared beams, time-of-flight, thermal, stereo and camera-based vision) and covers both the products worth buying and how teams build camera-based counting themselves with Ultralytics YOLO models.

Four measurements, not one#

MeasurementQuestion it answersWhat it needsCommon failure
Entries / footfallHow many people came in today?Directional counting at each entranceCounting staff, deliveries and re-entries as visitors
OccupancyHow many are inside right now?Entries and exits, accurately, or whole-area sensingSmall directional errors accumulating into large drift over a day
Dwell timeHow long did people stay?Tracking identity-free paths across the areaLosing tracks through occlusion, then double-counting a return
Queue length and waitHow many are waiting, for how long?Region-based counting plus timingDefining where a queue starts when it is not a tidy line

Occupancy is the one that surprises teams. Deriving it from entries minus exits means every counting error compounds: a small directional error, repeated across every movement through the door, leaves the count meaningfully wrong by closing time. Systems that need reliable occupancy either sense the whole area directly or reset the count on a known-empty condition, typically overnight.

Sensing methods compared#

MethodHow it worksStrengthsLimitsPrivacy profile
WiFi / BLEDetects device signalsWide area, no ceiling install, cheap where APs existCounts devices not people; misses phones off or randomized; poor precisionNo imagery; device identifiers are still personal data in many regimes
Infrared beamBreak-beam across a doorwayVery cheap, simple, low powerNo direction unless paired; groups walking abreast count as oneMinimal
Time-of-flight (ToF)Overhead depth sensing of a zoneAccurate directional counting, robust to lighting, works in the darkFixed narrow coverage per unit; more units for wide entrancesNo recognizable imagery
ThermalDetects body heat signaturesWorks in darkness; inherently anonymousDegrades when ambient approaches body temperature; lower resolutionStrong — no identifiable image
Stereo visionTwo lenses derive depthGood accuracy and height filtering to exclude children or trolleysHigher unit cost; needs careful mounting and calibrationImagery exists but usually processed locally
Camera-based visionDetection and tracking models on videoCounts plus context — queues, zones, direction, dwell, object classes — on cameras you may already ownSensitive to lighting, occlusion and camera angle; needs computeHighest sensitivity; requires deliberate design

The genuine trade-off is context versus simplicity. A ToF sensor over a door does one job extremely well and tells you nothing else. Camera-based vision gives you direction, zones, dwell, queues and object classes from the same stream, and takes on lighting, occlusion and compute problems in exchange.

For a single entrance where only entries matter, overhead ToF is usually the better engineering answer and the easier privacy conversation. For multi-zone analysis, queues, or counting that must combine with other detections, vision is the method that scales to the requirement.

What actually degrades a count#

Vendor accuracy figures are quoted under conditions that rarely resemble a real deployment. The factors that move real-world accuracy:

  • Groups and abreast walking. Two people shoulder to shoulder through a wide door are the classic undercount. Doorway width relative to sensor coverage matters more than the sensor's rated accuracy.
  • Occlusion. Trolleys, umbrellas, luggage, tall displays and dense crowds hide people from any method that needs a clear view.
  • Camera angle. Overhead is far more accurate than oblique for counting, because oblique views stack people behind each other. A repurposed security camera at a shallow angle is the most common reason a vision count disappoints.
  • Lighting. Backlit entrances at sunrise and sunset are the hardest case for vision, as are reflective floors and glass doors.
  • Loitering at the threshold. Someone standing in a doorway talking can generate repeated crossings without a persistence rule.
  • Who counts as a visitor. Staff, cleaners, deliveries and passers-through are usually the largest single source of disagreement between a system and a manual audit, and it is a definition problem rather than a sensing one.
  • Multi-camera double counting. Overlapping fields of view count the same person twice unless zones are defined to be mutually exclusive or tracks are handed off between cameras.

Whatever you deploy, validate against a manual count on your worst conditions: busiest hour, worst lighting, widest entrance. Accuracy under those conditions is the number that matters.

Products worth shortlisting if you are buying#

If the goal is footfall reporting, occupancy dashboards or retail conversion analytics, these are mature products and buying is usually the right call. Ultralytics is not an alternative to them.

Xovis. Overhead stereo-vision sensors with strong accuracy for entrance counting, queue management and zone analytics, widely deployed in airports and large retail. Best fit for environments where counting accuracy is operationally critical. Trade-off: sensor hardware per coverage area, so wide or numerous entrances add cost.

V-Count. People counting and analytics aimed squarely at retail, with a platform layer covering footfall, occupancy and conversion reporting. Best fit for multi-site retail estates wanting reporting out of the box. Trade-off: retail-shaped analytics translate less naturally to industrial or campus settings.

Density. Workplace-focused occupancy measurement using its own anonymous depth sensors, positioned around real-estate and space-utilization decisions. Best fit for corporate portfolios optimizing office space. Trade-off: built for workplace questions rather than retail conversion.

FootfallCam. Counting hardware plus analytics with broad retail coverage and a wide range of sensor options. Best fit for retailers wanting hardware and reporting from one supplier. Trade-off: range of models requires care in specification.

RetailNext. In-store analytics platform where counting feeds a broader merchandising and shopper-behavior product. Best fit for retailers whose question is store performance, not just traffic. Trade-off: platform scope well beyond counting, priced accordingly.

Sensormatic ShopperTrak. Long-established retail traffic counting and benchmarking with substantial market data behind it. Best fit for retailers valuing comparative benchmarks. Trade-off: enterprise retail orientation.

Axis. Counting applications running on Axis cameras, useful where an Axis estate already exists and additional hardware is unwelcome. Best fit for organizations standardized on Axis. Trade-off: tied to that camera ecosystem.

Cisco Spaces. Occupancy and location insight derived from existing network infrastructure. Best fit for large campuses wanting occupancy without new sensors. Trade-off: device-based sensing, with the precision limits that implies.

Building camera-based counting#

Counting is one of the more approachable vision builds, which is why it is a common first project (the Ultralytics Academy lesson on counting, heatmaps, and speed estimation walks through one). It is worth building when counting is a component of a larger system (a machine, a robot, a site platform, a product you ship) when the count must combine with detections no product offers, or when footage cannot leave the premises.

The pipeline is well-established.

Detect people per frame. Ultralytics YOLO models (YOLOv8, YOLO11 and YOLO26) handle person detection, and the same model can detect other classes you care about in the same pass: vehicles, trolleys, forklifts.

Track across frames. Counting requires knowing that the person in frame 200 is the person from frame 199. Ultralytics models support tracking, which assigns persistent identity-free IDs across a sequence, and the quality of tracking through occlusion determines the quality of the count far more than detection accuracy does.

Define the counting geometry. A line for directional entry and exit counting, or a polygon for occupancy in a region. Direction comes from which side of the line a track crosses from. Where multiple cameras cover adjacent areas, define zones to be mutually exclusive so a person is never counted twice.

Add persistence and debouncing. Require a track to be established for N frames before it counts, and prevent a single loiterer at a threshold from generating repeated crossings. This layer, not the model, is where most accuracy improvement comes from.

Choose the deployment target early. Continuous inference over several streams is a real capacity question. Most counting does not need every frame: set the frame rate from how fast someone can cross the line, not from what the camera can deliver. Ultralytics models export to formats including ONNX and TensorRT for edge hardware next to the camera, which also keeps video local.

Train on your own footage. A general model handles people well; your specific entrance at sunrise, with glass doors and a reflective floor, is what decides production accuracy. Ultralytics Platform can annotate that footage with SAM-based Smart Annotation and train on it in the same workflow.

Validate against manual counts at the busiest hour and worst lighting, and re-validate after any camera move.

If counting goes into a commercial product or proprietary system, note that Ultralytics YOLO models are offered under AGPL-3.0 and such deployments generally require an Ultralytics Enterprise license, which also covers private deployment. Settle that before a pilot becomes a shipped feature.

Privacy: counting should not identify anyone#

Counting is one of the few camera applications that can be made genuinely privacy-preserving by design, and doing so removes most objections before they are raised.

No method described here needs to identify individuals. Entries, occupancy, dwell and queue length all work on anonymous detections and identity-free tracks that exist only while a person is in frame. Ultralytics does not offer its models for facial recognition, and building identification into a counting system adds substantial legal exposure while improving none of these measurements.

Design choices that keep it that way:

  • Process locally and keep only counts. If the output is a number per interval, retain the number and discard the frames.
  • Do not persist track IDs beyond the field of view. A track that ends at the frame edge should end. Re-identifying the same person across cameras or across visits is a materially different system with materially different obligations.
  • Aggregate over intervals rather than logging individual events, where the use case allows.
  • Post notice, and where the setting is a workplace, consult worker representatives: a requirement in much of the EU, and good practice everywhere.
  • Prefer inherently anonymous sensing where only a count is needed. If ToF or thermal answers the question, it is the easier conversation.
  • Document purpose per camera, which makes a data-protection assessment straightforward.

Note that "no cameras" does not automatically mean "more private". WiFi and BLE counting works from device identifiers, which are personal data under GDPR in many circumstances, while a thermal sensor producing only a count is not processing personal data at all. Judge the method by what it retains, not by whether it involves a lens.

Frequently asked questions

  • For retail footfall and conversion analytics: V-Count, RetailNext, ShopperTrak and FootfallCam. For high-accuracy entrance and queue counting: Xovis. For workplace occupancy and space utilization: Density, or Cisco Spaces where network-based sensing is sufficient. For counting as a component of a system you are building, camera-based vision with Ultralytics YOLO models is the usual route.

  • Overhead sensing, time-of-flight or stereo vision, is generally the most accurate for entrance counting, because a top-down view largely eliminates occlusion between people. Camera-based vision approaches that accuracy when mounted overhead and degrades notably at oblique angles. WiFi and BLE are the least precise, because they count devices rather than people.

  • It depends almost entirely on camera angle, lighting and crowd density rather than on the model. An overhead camera in even lighting performs very differently from a repurposed security camera at a shallow angle over a backlit glass entrance. Validate against a manual count in your busiest hour rather than relying on any published figure.

  • Often yes, with a caveat: cameras positioned for security are angled to see faces and wide areas, which is close to the worst geometry for counting. Expect adequate results for zone occupancy trends and less reliable results for precise entrance counts. Adding one overhead camera at the entrance usually outperforms tuning a model against a bad angle.

  • No. Every measurement here (entries, occupancy, dwell, queue length) works on anonymous person detections with identity-free tracks that exist only while someone is in frame. Adding identification increases legal exposure without improving the count.

  • Either count entries and exits directionally and maintain a running total, or sense the whole area directly. The first is cheaper and accumulates error over a day, so it needs a periodic reset on a known-empty condition. The second is more robust but requires coverage of the entire space.

  • Most often definition rather than sensing: staff, deliveries, cleaners and people passing through without stopping. Agree what counts as a visitor before comparing numbers. After that, the usual technical causes are groups walking abreast, occlusion, and overlapping camera zones double-counting.

  • Buy, if the requirement is footfall or occupancy reporting. The products are mature and the total cost of building a reporting layer is routinely underestimated. Build when counting is one component of a larger system, when it must combine with detections no product offers, or when video cannot leave the site.

Written by

Miles Deans
Miles Deans

SEO Lead · Ultralytics

Miles Deans is the SEO Lead at Ultralytics, based in London, where he drives the company's search strategy and organic growth. He previously held roles at Adobe, Kaizen, and Virgin Media O2.

Comments

Ask a question, share your results, or help someone else.

Similar articles

Train, validation and test splits for computer vision: ratios, class balance and leakage

Train, validation and test splits for computer vision: ratios, class balance and leakage

Start at 70/15/15, split by camera or clip, check every class in every split, and score val and test separately with Ultralytics YOLO and Platform.
Learn more
Document layout analysis datasets for historical pages, and why old prints are hard

Document layout analysis datasets for historical pages, and why old prints are hard

Six historical document layout analysis datasets on Ultralytics Platform, from The History of England to a 15th-century music manuscript, compared.
Learn more
How to choose an edge AI device for computer vision, with measured Ultralytics YOLO26 results

How to choose an edge AI device for computer vision, with measured Ultralytics YOLO26 results

Measured YOLO26 results on Jetson, DGX Spark, Raspberry Pi 5 with Hailo-8 or DEEPX, RK3588, Snapdragon, iPhone, Apple M4 and STM32, each with its setup.
Learn more
Ultralytics Platform export options for YOLO26n: TensorRT for a Jetson Orin Nano Super at 4.57 ms and NCNN for a Raspberry Pi 5 CPU at 67.03 ms, from separate published benchmarks

Jetson Orin Nano Super vs Raspberry Pi 5 for YOLO26 object detection

YOLO26n inference: 4.57 ms on a Jetson Orin Nano Super (TensorRT FP16) vs 67.03 ms on a Pi 5 CPU, in separate tests. Choose by model, FPS and cameras.
Learn more
Ultralytics cover for the Azure Custom Vision migration checklist: the Ultralytics Platform New Dataset dialog with a panel mapping Custom Vision detection projects, tagging, training iterations and prediction endpoint to Platform datasets, annotation editor, cloud training and dedicated endpoints

Azure Custom Vision is retiring: a migration checklist for your vision models

Azure Custom Vision retires on September 25, 2028. Plan your migration, export your labeled data and retrain on Ultralytics Platform.
Learn more
Ultralytics Platform export list with the NCNN row highlighted above MNN, the format recommended for running YOLO26 on a Raspberry Pi 5 CPU

Raspberry Pi object detection: YOLO26 on a Pi 5 CPU, no accelerator

YOLO26n runs at 67.03 ms per image with NCNN on a Raspberry Pi 5 CPU, and Arm's open-source runtime measures 36.60 ms in its own test. Here's how to run both.
Learn more
Ultralytics licensing page showing the free AGPL-3.0 card and the paid Ultralytics Enterprise License card

Is Ultralytics YOLO free for commercial use? AGPL-3.0 vs the Enterprise License

Ultralytics YOLO is free under AGPL-3.0 if you open-source your whole project. Compare licensing for internal tools, SaaS and devices.
Learn more
Ultralytics security page cards for ISO/IEC 27001:2022 and SOC 2 Type I, with Ultralytics Platform workspace roles in front, on a gold gradient cover titled Regulated industries

Computer vision for regulated industries: an Ultralytics security review checklist

A security review checklist for computer vision in regulated industries: SOC 2 and ISO 27001 scope, on-premise and air-gapped options, privacy and SLAs.
Learn more
The Ultralytics Platform SAM smart annotation editor segmenting boxes on a warehouse conveyor, with a Batch Annotation estimated cost of $0.05 for 49 images

Budgeting for Image Annotation: Seats, AI and Exports

Compare image annotation software costs, free-plan limits and AI allowances. Estimate software and project costs with a worked three-person team example.
Learn more
Aerial view of a busy intersection with cars boxed by Ultralytics YOLO26s using 640-pixel tiles, dashed lines marking the tile seams

Small object detection with image tiling in Ultralytics YOLO, from Python to Rust

See when image tiling helps YOLO detect small objects, compare its costs, and run built-in tiled inference in Python or Rust without SAHI.
Learn more
A confusion matrix from model evaluation in Ultralytics Platform, beside compare workflows: no-code, developer control and edge export

Best platforms for training custom image classifiers

Image classifier training platforms compared: no-code AutoML, developer platforms and edge tools, and how to choose by control, deployment and cost.
Learn more
A rendered street scene with a bus, cars and people carrying pixel-perfect segmentation labels, beside three methods: simulation, generation and augmentation

Best synthetic data tools for computer vision training

Synthetic data tools for computer vision compared by method: 3D simulation, generative models and augmentation, and how to test them with Ultralytics YOLO.
Learn more
Missing PPE detection: train Ultralytics YOLO on Construction-PPE

Missing PPE detection: train Ultralytics YOLO on Construction-PPE

See how Construction-PPE labels missing helmets, vests and gloves, then train Ultralytics YOLO to detect missing PPE on your own site cameras.
Learn more
Drone detection dataset guide: train Ultralytics YOLO on tiny UAVs

Drone detection dataset guide: train Ultralytics YOLO on tiny UAVs

Compare DUT Anti-UAV, Drone-vs-Bird and thermal drone detection datasets, then train Ultralytics YOLO26 to find tiny drones and cut false alarms.
Learn more
A YOLO26 depth estimation prediction in Ultralytics Platform showing a dense depth map of a street scene with a bus, with timings and depth range

Best Depth Estimation Models: How to Choose

Compare monocular depth models such as Depth Anything, Depth Pro, Metric3D, UniDepth and Ultralytics YOLO26 for metric depth, edge devices and robotics.
Learn more
Two leaves classified as healthy and rust by an image classification model, with confidence scores

Best Image Classification Models: How to Choose

Compare the leading image classification models, from ConvNeXt V2 and DINOv3 to EfficientNetV2, ViT and Ultralytics YOLO26-cls, and learn how to choose.
Learn more
YOLO26 semantic segmentation of a street scene with a bus and people in Ultralytics Platform, each class shown in its own color

Semantic vs Instance Segmentation: How to Choose the Right Task

Semantic segmentation labels every pixel by class; instance segmentation separates each object. Learn which one your computer vision project needs, and why.
Learn more
An engineer with a tablet beside industrial machinery, beside the costs beyond compute: data and labeling, cameras and hardware, integration and operations

What Enterprise Computer Vision Costs: A TCO Framework

A total-cost framework for enterprise computer vision covering data, annotation, cameras, edge hardware, training, inference, integration and retraining.
Learn more
Ultralytics Platform deployment monitoring showing total requests, active deployments and a ready YOLO26 segmentation endpoint

Computer Vision Inference at Scale: Seven Platforms Compared

Seven computer vision inference platforms compared: Azure ML, KServe, NVIDIA Triton, Roboflow, SageMaker AI, Ultralytics and Vertex AI, on latency and scale.
Learn more
Ultralytics Platform SAM smart annotation outlining a leopard, beside two different jobs: propose labels and select useful frames

How to Label Less: Auto-Labeling and Active-Learning Tools Compared

Ten auto-labeling and active-learning tools compared: CVAT, Encord, Label Studio, Labelbox, Lightly, Roboflow, SuperAnnotate, Ultralytics, V7 and FiftyOne.
Learn more
Elevated security-camera view of a city intersection with cars, a bus and pedestrians detected by Ultralytics YOLO26, beside three routes: analytics layer, VMS upgrade and self-hosted models

How to Add AI Analytics to Existing Security Cameras

Three routes to adding AI analytics to existing security cameras: analytics layers, VMS upgrades, or self-hosted models, and the constraints that decide.
Learn more
Metal castings on a conveyor with cracks and damaged parts detected, a magnified crack, and what to test: accuracy on your images, edge deployment and licensing

Choosing a Computer Vision Vendor: An Enterprise Procurement Guide

A procurement view of eight computer vision vendors: AWS, Azure, Cognex, Encord, Landing AI, NVIDIA, Roboflow and Ultralytics, with licensing checks.
Learn more
An edge computing board with a processor, beside where inference runs: managed endpoint, own hardware or hybrid

Managed Cloud vs Self-Hosted Computer Vision Deployment

Compare managed cloud and self-hosted computer vision deployment on cost, latency, data boundaries, scaling and exit risk, with three deployment patterns.
Learn more
A parcel on a modern conveyor detected by Ultralytics YOLOE, beside production readiness steps: validate, integrate, assign owners and monitor

Scaling Computer Vision from Pilot to Production

Six stage gates for taking computer vision from pilot to production, covering coverage matrices, workflow validation, model operations and site readiness.
Learn more
Bottles on a high-speed bottling line under an inspection camera, each detected by Ultralytics YOLO26

Computer Vision Platforms for Manufacturing: YOLO, Cognex and Keyence Compared

Compare computer vision platforms for manufacturing: Cognex, Edge Impulse, Keyence, Landing AI and Ultralytics YOLO, on inspection and MES fit.
Learn more
An Ultralytics Platform dataset gallery of labeled wildlife images, beside the question service or software: managed labeling or annotation software

Scale AI Alternatives for Data Labeling

Alternatives to Scale AI for vision data labeling: iMerit, SuperAnnotate and Ultralytics Platform, compared on cost, control, ramp time and data handling.
Learn more
An industrial robot lifting a tyre from a stack in a warehouse, with the tyre detected by Ultralytics YOLOE

Vision-Guided Robotics for Assembly and Pick-and-Place

How vision-guided pick-and-place works across sensing, perception, calibration, grasp planning, motion and recovery, with a 2D versus 3D decision guide.
Learn more
Cherries segmented with precise polygon labels, beside who owns label quality: guidelines, review and a gold-standard set

Annotation Outsourcing vs In-House: The Real Trade-offs

Compare outsourced and in-house computer vision annotation on cost per usable label, ramp time, quality, security and the hybrid model most teams reach.
Learn more
PyTorch vs TensorFlow for computer vision projects

Choosing between PyTorch vs TensorFlow for computer vision projects

Compare PyTorch vs TensorFlow for computer vision across ease of use, flexibility, deployment, and scalability, and see how each fits Ultralytics YOLO.
Learn more
Supervised vs unsupervised learning in computer vision

Exploring supervised vs unsupervised learning in computer vision

Learn the differences between supervised and unsupervised learning in computer vision and how to choose the right approach for your data and project goals.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning