People counting: Datasets & Models
Detect and count people in images and video streams using object detection. Built for security and surveillance teams who need accurate headcounts across cameras.
People counting
This people counting workflow applies object detection to identify each person in a scene and generate a headcount from either live camera streams or archived video. It accepts standard RGB images and video as input, drawing bounding boxes around every detected individual so counts can be aggregated per frame, per zone, or over time.
Try it out
Powered by general detection model
Run on custom image
Drop an image here or click to upload
Why automate people counting
Manually counting people from CCTV monitors is tedious, error-prone, and impossible to scale across dozens of cameras or long recording windows. Security and surveillance teams need reliable occupancy numbers for compliance limits, queue management, and incident response, and human operators simply cannot watch every feed continuously. Automating people counting detection with a vision model turns raw camera footage into structured, timestamped counts without adding staff. The result is consistent, 24/7 monitoring that flags overcrowding or unusual footfall the moment it happens.
Key benefits
Automated people counting delivers continuous, repeatable headcounts that integrate directly with the IP cameras and NVR infrastructure you already operate, so there is no need to rip and replace hardware. Detection-based counting scales from a single doorway to entire multi-site deployments, and models like RF-DETR balance accuracy on dense, overlapping crowds with the throughput needed for real-time streams. Teams gain auditable occupancy data, faster response to crowding events, and a foundation for downstream analytics like dwell time and flow direction.
How to use it
- Upload an image: Drop any photo into the widget above to try people counting for free, right on this page.
- Preview instant results: The model detects person, head, face, backpack, helmet within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
- Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
- Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model for people counting
RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for people counting, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.
Not sure where to start?
Describe your People Counting project to Roboflow Agent.