This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Security & Surveillance

Loitering detection: Datasets & Models

Loitering detection uses computer vision to flag people who linger in a monitored area longer than expected, such as building entrances, ATMs, parking lots, or restricted zones. It combines person detection with dwell-time tracking to surface potential security concerns automatically.

Loitering detection example
1M+
developers
16k
organizations
50B
inferences

Loitering detection

This loitering detection workflow analyzes video streams or image frames to detect people and track how long each person stays inside a defined monitoring zone. When an individual's dwell time exceeds a set threshold, the workflow flags them as loitering so security teams can review entrances, ATMs, parking lots, or restricted areas.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate loitering detection

Manually watching dozens of camera feeds for people who linger too long is tedious, error-prone, and impossible to scale, and operators frequently miss suspicious behavior during long shifts. Automating loitering detection with computer vision provides consistent, round-the-clock coverage and flags only the events that need human attention, cutting down on wasted monitoring time. For security and surveillance teams, this means faster response to potential intrusions, vandalism, or theft before an incident escalates. It also creates a searchable record of dwell-time events for audits and investigations.

Key benefits

Teams get automated, always-on monitoring that reduces operator fatigue and shortens the time between suspicious activity and response. The workflow runs on the cameras and infrastructure you already have, so there is no need to rip and replace hardware. Built on RF-DETR for accurate person detection, it scales from a single entrance to hundreds of feeds across multiple sites.

How to use it

  1. Upload an image: Drop any photo into the widget above to try loitering detection for free, right on this page.
  2. Preview instant results: The model detects person, backpack, handbag, bicycle, vehicle 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.
  3. 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.
  4. 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

Recommended model for loitering detection

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 loitering detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Loitering Detection project to Roboflow Agent.

Agent