> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/deploying/vms/milestone/running-detection.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Running Detection

Subscribe a camera, run EyePop inference, and see bounding boxes

With the EyePop runtime registered and the API key set, you can run detection by subscribing a camera to EyePop's metadata topic in XProtect Server.

### Subscribe a camera

1. In the Management Client, open a camera's **Processing server** tab and tick **objects** (type **Metadata**) under **EyePop AI Vision**, below the AI Bridge this EyePop service is connected to.
2. Enabling the topic makes XProtect auto-create an analytics camera for it via its VPS driver. **Restart Smart Client** before checking for bounding boxes — XProtect doesn't pick up the newly created analytics camera until it restarts.

### Watch camera status

Open the management page's **Cameras** tab. A subscribed camera appears automatically, with a status badge: `running` once results are arriving. For every other status and what it means, see [Camera Health](https://github.com/eyepop-ai/eyepop-docs-external/tree/main/deploying/vms/milestone/camera-health.md).

### What comes back

**Bounding boxes** — On Smart Client you will see a bounding box with class label for any detected people & objects.

### Default behavior

No configuration is required for basic detection. Every camera that isn't explicitly assigned a workflow uses the built-in **`default`** workflow, which detects common objects with EyePop's `eyepop.common-objects` ability. To change what a camera detects, see [Workflows](https://docs.eyepop.ai/deploying/vms/milestone/workflows.md).

### Troubleshooting

| Symptom                                               | Fix                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Camera enabled, but no bounding boxes in Smart Client | Restart Smart Client — it doesn't pick up a newly auto-created analytics camera until restarted. The same applies after you untick and re-tick EyePop on a camera, or delete and recreate its `[objects-onvif_analytics]` device: each creates a new analytics device.                                                              |
| Camera enabled, but never appears on the Cameras tab  | Check you enabled it under the right AI Bridge on the Processing tab. A new subscription shows up within about a minute.                                                                                                                                                                                                            |
| Camera stuck on `error`                               | Hover the status badge for the reason; most commonly an unset or invalid EyePop API key or EyePop URL, or a workflow that won't load. Camera video problems show as `reconnecting` or `refused` instead; see [Camera Health](https://github.com/eyepop-ai/eyepop-docs-external/tree/main/deploying/vms/milestone/camera-health.md). |
| An `.env` change doesn't take effect                  | `docker compose restart` reuses the baked-in environment. Recreate with `docker compose up -d --force-recreate` after editing `.env`.                                                                                                                                                                                               |

### Next steps

* [Workflows](https://docs.eyepop.ai/deploying/vms/milestone/workflows.md) — control what each camera detects
* [Configuration](https://docs.eyepop.ai/deploying/vms/milestone/configuration.md) — `.env`, configMaps, and the EyePop API key


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/deploying/vms/milestone/running-detection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
