> For the complete documentation index, see [llms.txt](https://nx.docs.scailable.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nx.docs.scailable.net/ai-manager-v6.1.4/ai-manager-plugin/configure-the-plugin/postprocessors/loitering-detection.md).

# Loitering Detection

Detect when an object stays in frame longer than a configured time threshold.

The AI Manager has the functionality to detect loitering. This is a tool to detect if a certain object is detected for longer than the desired amount of time.

Once it is detected that this subject is loitering, the plugin generates a bounding box with the 'loiterer' type to clearly show where this is happening.

<figure><img src="https://2982163321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKGfC0TFSmuMDjbpLErO3%2Fuploads%2Fgit-blob-524269024ebc7f55af9595aa71802cb408395999%2Fpostprocessor-loitering-detection-params.png?alt=media" alt="Loitering Detection postprocessor settings panel"><figcaption><p>Loitering Detection Settings</p></figcaption></figure>

**Loiter Detection Time Threshold:** A subject detected for at least this amount of time, in seconds, will be considered loitering.

**Loiter Detection Class:** The class of objects to run the postprocessor on. This is useful if you have a model which detects multiple types of objects, but you only want to check for loitering objects on a specific class, for example 'person'.
