---
title: "Analytics"
description: "Count people and vehicles crossing a line, measure occupancy and time spent in a zone, and see heatmaps, from your cameras' object detector."
url: https://vigiora.com/docs/ai/analytics
updated: 2026-11-25T11:37:01.000Z
---

# Analytics

> Count people and vehicles crossing a line, measure occupancy and time spent in a zone, and see heatmaps, from your cameras' object detector.

Vigiora Analytics turns what a camera's object detector sees into numbers. Draw a **line** across an entrance to count who goes in and out. Draw a **zone** to measure how many people are in it and how long they stay. Group lines and zones from one or more cameras into an **area**, such as a shop or a car park, to follow its occupancy against a capacity. The **Analytics** page shows it all as cards, with heatmaps, CSV export and a printable report.

From version 1.6.16, Analytics also measures [queues, parking bays and speed](https://vigiora.com/docs/ai/queues-and-parking), raises [alerts](https://vigiora.com/docs/ai/analytics-alerts) when its numbers cross a limit, and drives a [door display](https://vigiora.com/docs/ai/door-display) at the entrance.

![The Analytics page with area tabs, the live occupancy strip, and the Footfall, Occupancy, Dwell time and Heatmap cards](https://vigiora.com/docs/img/ai/analytics-1-page.png)

*The Analytics page: one tab per area, live numbers at the top, and cards below.*

## What you need

- **The Vigiora Analytics add-on** for the cameras you count on. It costs **$4 per camera per month**, and the **first month is free**, once per account. Add it on vigiora.com when you upgrade or change your plan. It runs on any camera: it doesn't need Core AI. See [Plans and pricing](https://vigiora.com/docs/account/plans-and-pricing).
- **An object detector on the camera.** Analytics counts the people and vehicles that [object recognition](https://vigiora.com/docs/ai/hal-services#object-recognition-any-object) (`hal-objects`) tracks. That is an installed add-on (**Objects**) that runs on a machine with an NVIDIA GPU. Assign it to the camera. Without a detector, nothing is counted.
- **An admin or operator** to draw lines and zones and to create areas.

When a camera is over your plan's Analytics cameras, the camera's **Analytics** tab says **Upgrade your plan to use Analytics on more cameras.** If Analytics leaves your plan, existing numbers stay readable and new counting is paused.

## Privacy

Analytics works from positions, not pictures.

- The detector sends only the position of each tracked object over time (for people, the point at their feet) and its class, such as person or car.
- No faces are recognised, and no age, gender or other personal traits are estimated.
- Analytics stores no images. The heatmap is a grid of counts, drawn over the camera's picture only when you view it.
- Raw positions are kept for 7 days by default. Counts and visits are kept longer, as numbers (see [How long data is kept](#how-long-data-is-kept)).

## Set up a camera

1. **Open the camera's editor**

   Open the camera and click **Edit**, then open the **Analytics** tab. The tab appears for admins and operators on a camera that is already saved.

2. **Turn Analytics on**

   Switch on **Analytics**.

3. **Choose what to count**

   Under **Count these**, tick the classes: person, car, truck, bus, motorbike or bicycle. At least one must stay ticked.

4. **Draw a line or a zone**

   Pick **Line** and click two points on the image, or pick **Zone** and click the corners (double-click, or click the first point, to close it). Esc cancels.

5. **Name it and check the direction**

   In the list below the image, give it a **Name**. For a line, check which side is **In** and which is **Out**; click **Flip direction** to swap them.

Changes save as you make them.

![A camera's Analytics tab with a counting line across a doorway, a zone on the floor, and the list of lines and zones](https://vigiora.com/docs/img/ai/analytics-2-camera-editor.png)

*Draw lines and zones on the camera's picture. Live trails show what the detector is tracking.*

### Camera options

| Option | What it does | Default |
| --- | --- | --- |
| Analytics | Turns counting on for this camera. It counts toward your plan’s Analytics cameras. | Off |
| Count these | The classes this camera counts: person, car, truck, bus, motorbike, bicycle. | person |
| Detection rate | How many frames a second the detector checks. Auto uses 3, or 5 when a line counts vehicles. You can pick 1, 2, 3, 5 or 10 fps. | Auto |
| Reset detector source | Analytics takes tracks from one detector per camera: the first to report. If you replace the detector, click this so the new one is used. |  |

### Detector status

The tab shows whether tracks arrive:

| Status | Meaning |
| --- | --- |
| **Receiving tracks at 3 fps** | The detector is sending tracks. |
| **Detector connected — nothing to count in view right now** | The detector is connected, and nobody is in view. |
| **No tracks from a detector yet — assign hal-objects to this camera and update it** | No detector has reported for this camera. Assign object recognition to the camera. |

## Lines

A line counts each object that crosses it, in one direction or the other.

- Each crossing counts once. Someone who steps over the line and back within 3 seconds isn't counted.
- The side a person comes from decides **In** or **Out**. **Flip direction** swaps them.
- A line counts only the classes you ticked under **Count these**.
- Lines use the point at the feet of each person or vehicle, so draw them on the floor, where people walk.
- Turn a line off with **Enabled** to stop counting and keep its history.

> **Deleting a line deletes its history**
>
> **Delete** removes the line together with its counts and history. To keep them, turn the line off instead.

### Where to draw a line

- Draw it **across the path people take**, from one side of the walkway to the other, a little inside the door rather than on the edge of the picture.
- Make sure people are in full view where they cross. If the camera only sees their heads and shoulders at the bottom of the picture, their feet are out of view and the line can't see them cross.
- Keep lines **off parked cars** and other objects that stay in one place. A line that ends on a parked car may count a detector's mistake as a crossing. For vehicles, use a separate line at the vehicle gate.
- After drawing, watch a few people walk through and check that **In** and **Out** go the right way.

## Zones

A zone measures who is inside an area of the picture, such as a seating area or a queue.

| Measure | Meaning |
| --- | --- |
| **In zone now** | How many people (or vehicles) are inside right now. |
| **Visits** | Each stay in the zone. A visit shorter than **Min dwell (s)** counts as passing through, not a visit. |
| **Dwell time** | How long visits lasted, as an average and a median, with a chart of how long visits lasted. |
| **Stopped time** | How much of a visit was spent standing still. |

A zone can have a **Capacity**, the most people it should hold. From version 1.6.16 a zone also has a **Kind**: **Zone**, **Queue** or **Bay**. See [Queues, parking and speed](https://vigiora.com/docs/ai/queues-and-parking).

Deleting a zone deletes its statistics and history; turn it off with **Enabled** to keep them.

## Areas and occupancy

An area adds up entrance lines (and zones) from one or more cameras: a shop, a floor, a car park. Its occupancy is the number of people inside, counted from its entrance lines.

1. **Open Analytics**

   Open **Home** → **Analytics** tab.

2. **Add an area**

   Click **Area** (admins and operators).

3. **Fill in the area**

   Give it a **Name**, an optional **Capacity**, and **Reset count at**, the time each day when the count starts again from 0 (04:00 by default).

4. **Pick its entrance lines**

   Under **Entrance lines**, tick the lines that lead into the area. For each one, choose the **Direction**: **+ in = entering** or **− in = leaving**, depending on how the line was drawn. Add zones if you want them on the area's cards.

5. **Save**

   Click **Save**.

Occupancy never goes below 0. If the count drifts, for example after a power cut, click **Set occupancy** in the live strip and enter the **People inside now**. Counting continues from that number until the next daily reset.

Deleting an area deletes its occupancy history; its lines and zones stay.

## The Analytics page

Open **Home** → **Analytics** tab. From version 1.6.18 the top of the page is one toolbar row, so the cards start higher on every screen:

- **Area tabs** on the left: one per area, plus **All**, which adds up the areas you can see. Overlapping areas count twice in **All**. The edit, door-display and **+ Area** buttons follow them.
- **Period:** **Today**, **Yesterday**, **This week**, **Last 7 days**, **This month** or **Custom** (**From** and **To**).
- **Class:** show all classes, or one, such as person.
- **Print report** on the right (an icon alone under 1280 px wide). See [Print a report](#print-a-report).
- **The live strip** under the toolbar is a row of compact tiles that fills the width: each area's occupancy now with its capacity bar and free places, and under it **Today: … in · … out**; the people in each zone now; from version 1.6.16 the people waiting in each queue and, for an area of parking bays, the free bays, such as **12 of 40 free**. From 1.6.18 a **Today** tile sums the areas shown (**94 in · 83 out**) and names the **busiest hour** so far, from the hourly counts. On a phone the tiles scroll sideways.
- **Open hours** (in the area's form, from 1.6.16) say when the area is open. Alerts such as **Zone empty** use them.

Below are the cards:

| Card | What it shows |
| --- | --- |
| **Footfall** | People (or vehicles) in and out over the period, with the change against the previous period. |
| **Occupancy** | People inside over time, with the average and the peak. |
| **Dwell time** | Visits, the average and median stay, and how long visits lasted, for a zone. |
| **Heatmap** | Where objects passed or stopped on a camera's picture. |
| **Class mix** | How the crossings split between people and vehicle types. |
| **Queues** | People waiting now and waiting times, per queue zone. From 1.6.16. See [Queues](https://vigiora.com/docs/ai/queues-and-parking#queues). |
| **Speed** | Average and fastest speed per class, on calibrated cameras. From 1.6.16. See [Speed](https://vigiora.com/docs/ai/queues-and-parking#speed). |
| **Busy hours** | A weekday-by-hour grid of when the area is busiest. From 1.6.16. |
| **Paths** | The paths people and vehicles took across a camera's picture, from the last 7 days. From 1.6.16. |
| **Parking** | Free and taken bays, stays and how full the car park was. From 1.6.16. See [Parking bays](https://vigiora.com/docs/ai/queues-and-parking#parking-bays). |

Use **Add card** to add a card, and each card's menu to **Move up**, **Move down** or **Remove** it. Your card layout is saved for you, per area.

Hours when the detector wasn't running are hatched and labelled **detector not running**, so a gap in the chart isn't mistaken for an empty shop. The counts say how much of the period was covered.

### Heatmaps

The **Heatmap** card draws a grid over a camera's picture.

- **Layer:** **Passing** shows where objects moved; **Stopping** shows where they stood still.
- **Range:** **Today** or **7 days**.
- **Opacity** sets how strongly it covers the picture.

![The Heatmap card showing where people passed over a camera's picture, from low to high](https://vigiora.com/docs/img/ai/analytics-3-heatmap.png)

### Print a report

From version 1.6.16, **Print report** prints the page on A4 paper, or saves it as a PDF from the print dialog: the area, the period, the cards and their charts, with the server's name and the time it was printed at the top. The menus and buttons are left out.

### Download CSV

Each card's menu has **Download CSV**. The file starts with a line such as `# Times in Europe/London`, and every row has a full local date and time, so it opens correctly in a spreadsheet.

## In the assistant and the Briefing

- **Guardian chat** answers questions such as *"How many people came in through the front door today?"*, *"How full is the shop now?"* or *"How long do people stay in the seating area?"* from the Analytics numbers. On a camera without a counting line it gives an approximate answer and says so. See [Guardian chat](https://vigiora.com/docs/ai/guardian-chat).
- **The Briefing** shows a **Visitors** line, for example *"412 visitors today, 8 % more than last week; busiest 12:00–13:00"*, and the occupancy of each area. See [Briefing](https://vigiora.com/docs/using/briefing).
- **The API** and AI agents read the same numbers with an API key that has the `analytics:read` scope. See [API v1](https://vigiora.com/docs/developers/api-v1).

## How long data is kept

| Data | Kept by default |
| --- | --- |
| Raw positions (tracks) | 7 days |
| Crossings and visits | 90 days |
| Hourly totals, occupancy and heatmaps | 400 days, for a year-on-year comparison |
| Alert history | 90 days |

An admin can change these through the API.

## Related pages

- [Queues, parking and speed](https://vigiora.com/docs/ai/queues-and-parking)
- [Analytics alerts](https://vigiora.com/docs/ai/analytics-alerts)
- [Door display](https://vigiora.com/docs/ai/door-display)

## Troubleshooting

| Problem | What to do |
| --- | --- |
| **No tracks from a detector yet** | Assign object recognition to the camera on its **AI Guardian** tab, and check the add-on is online. See [Add-ons](https://vigiora.com/docs/ai/hal-services). |
| A line counts nothing | Check that people's feet are in view where they cross, and that the line spans the whole path. |
| In and Out are the wrong way round | Click **Flip direction** on the line, or change the **Direction** of the line in the area. |
| Occupancy drifts during the day | Make sure every entrance of the area has a line. Use **Set occupancy** to correct it. |
| Parked vehicles counted | Move the line off the parked vehicles, or untick the vehicle classes on that camera. |

---

Source: https://vigiora.com/docs/ai/analytics · Last updated 25 Nov 2026, 11:37 UTC
