> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trurec.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dwell or loitering

> Get an alert when the same person stays in view, or in an area, for longer than you set.

*Tell me when someone stays longer than they should.*

You choose how long is too long. TruRec AI alerts you when the same person stays in view, or inside an area you mark, for longer than that.

> [!NOTE]
>
> **Beta.** Dwell or loitering is new. So far the longest stays it's been tested on are about a minute, shorter than the 5-minute default. Check its first alerts before you rely on it.

## Good for

* A shopfront, a lobby or an ATM area
* A side door or a back entrance
* A loading bay that shouldn't be used for waiting

## Set it up

**1. Choose where it matters**

**Anywhere in view** works for a doorway or a lobby. Choose **Only inside an area I mark** if the camera also covers a bench, a smoking area or a queue. A person counts as inside the area when the middle of their body is inside it. See [Mark an area](https://docs.trurec.ai/use-cases/drawing-zones.md#mark-an-area).

**2. Choose what should count**

Choose **People**. Vehicle detection isn't available yet.

**3. Choose how long is too long**

Set a time from 1 to 60 minutes. The default is 5. Under two minutes will alert on people waiting for a lift or reading their phone.

**4. Choose when it matters**

Choose **All day, every day**, or set hours. Outside the hours you set, the timer doesn't run: someone who arrived before the hours start is timed from when they start.

**5. Choose how urgent it is**

Loitering is usually worth reviewing rather than an emergency, so **In-app only** is the default: alerts are kept in Alerts without emailing anyone. Urgency applies to all your dwell or loitering jobs together. See [Urgency applies to the whole use case](https://docs.trurec.ai/alerts/notification-routing.md#urgency-applies-to-the-whole-use-case).

## What you'll get

An alert when a person passes the time you set, with the camera and the time, usually with a short clip. If they're still there, you get at most one reminder every 5 minutes for as long as they stay.

Someone who leaves and comes back starts a new stay. They're timed from zero again, and alert again only once they pass the time you set.

## Limits

* The clock follows one person while they stay. If they're out of sight for more than about two minutes, or TruRec AI loses track of them in a crowd and picks them up again as someone new, the clock restarts. A long stay can then alert later than you'd expect, or more than once.
* Staff who work in the area count too. Mark an area that leaves out their workstation, or set hours.
* It can't tell you who someone is. Someone waiting for a lift and someone casing a door look the same: the time is what separates them.
* It won't call anyone. Urgent alerts are emailed to your alert list.
* **Not validated at night yet.** It's been tested on daytime indoor scenes, with stays of about a minute. At night, on infrared, on high-mounted cameras or for long stays, expect more missed and wrong alerts.

## Tips

* **Too many alerts?** Raise the time first, then tighten the area.
* **Counter or till in view?** Mark an area that leaves it out, or every shift will alert.

See [Reduce false alerts](https://docs.trurec.ai/alerts/tuning-false-positives.md) for more.

> [!NOTE]
>
> **On Enterprise:** use cases are planned with you, so settings and limits can differ from this page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.