- Documentație
- Camere
- Motion detection
Această pagină nu este încă disponibilă în Română. Este afișată în engleză.
Motion detection
Turn on motion detection for a camera, tune how sensitive it is, and use it to start AI scene analysis.
În aplicație: /monitors/:id/edit/ai-guardian
Motion detection runs on your Vigiora Server and watches each camera for movement. When something moves, it starts the AI scene analysis (AI Guardian) for that camera. Motion detection itself is free on every plan.
Turn it on#
Open the camera settings
Open the camera from Cameras and click Edit.
Open AI Guardian
Click the AI Guardian tab. If the camera is new, save it first.
Switch on Motion Detection
Find Motion Detection (under Available services if it is off) and click Off so it reads On. It saves immediately.
Tune it
Click the arrow on the card to show its settings and adjust the sliders. Changes save as you move them.
Settings#
| Opțiune | Descriere | Implicit |
|---|---|---|
| Motion threshold | How much of the picture must change to count as motion. 1 = most sensitive, 100 = least. 25 means 1.25% of the frame; a person crossing a room is roughly 3–10%. Higher = fewer events. | 25 |
| Check interval (s) | Seconds between checks, 1–30. 2 s catches someone walking through. Higher uses less CPU but can miss brief movement. | 2 |
How it works#
- Vigiora takes a small grey-scale frame from the camera's sub-stream at each check (the main stream if there is no sub-stream), and compares it with the previous one.
- It ignores changes in lighting, such as a lamp switching on or the camera's auto-exposure.
- From version 1.6.11, the changed area must be one connected area of the size the threshold asks for. Small changes scattered over the picture, such as glints on water or a few flickering spots, no longer add up to motion.
- From version 1.6.11, it also recognises shadows and patches of sunlight: where a surface keeps its texture and only gets darker or brighter, it isn't counted.
- From version 1.6.11, when the light changes, for example a cloud passing or the sun coming out, motion must be bigger than usual and seen on two checks in a row. A lighting change on its own never counts, and a real person is still picked up on the next check, about 2 seconds later.
- It learns which parts of the picture are always busy, such as a TV, a fan or a waving curtain, and needs a bigger change there before it reacts.
- When almost the whole picture changes at once, for example when the camera moves or switches to night mode, it is not counted as motion.
- From version 1.6.11, each motion event also records, for troubleshooting, the size of the connected area in cells (
blob_cells), the cells it set aside as shadows (shadow_cells) and whether the light was changing (lighting). The server log shows the same for each motion it detects.
What motion starts#
With Motion Detection on its own, Vigiora detects movement but shows no alert. Combine it with AI to get descriptions and alerts:
- Turn on AI for this camera (Core AI). During the promotion, AI on 2 cameras is free.
- Optionally add natural-language alert rules on the AI for this camera (Core AI) card.
- Optionally add the AI scene alerts add-on for richer descriptions of busy scenes.
Then each burst of motion sends a short clip to the AI, which describes the scene in the AI Guardian history and checks your alert rules. To keep AI use in check, a camera is analysed at most once every 5 minutes, however much motion there is.
See Camera settings for alert rules.
QR codes#
From version 1.6.25, a camera with motion detection on also reads QR codes that move in front of it: a pass held up, a parcel label at the door, an asset tag. It is on by default, uses the server's own processor, needs no AI and costs no credits, and has no setting.
- While there is motion, Vigiora looks for a code at most once a second per camera. The same code on the same camera is recorded once a minute.
- Each read is an alert labelled
qr:followed by the text of the code. It shows in Recordings (with Needs attention on), in the playback timeline, in the event lists and in API v1. A label alert rule can match it. - A code must be about 75–100 pixels across in the picture. On a 1080p wide camera, that is within 1–2 metres.
- Guardian doesn't read the text of a code on its own, so a printed code can't give it instructions. Ask about QR codes in chat to see them.
- The codes the floor plan walkthrough shows to each camera are read for that, never raise an alert and are hidden from the lists.
Tuning tips#
| Problem | Try |
|---|---|
| Too many events from trees, rain or shadows | Update to version 1.6.11 or later, which ignores most shadows and lighting changes. If it still happens, raise Motion threshold, for example to 35 or 40. |
| Events from cars or people on the street behind a gate | These are real moving objects, so motion detection counts them. Draw a motion zone over the street, or point the camera away from it. |
| A person walking past is missed | Lower Motion threshold, for example to 15, and keep Check interval at 2 s. |
| The server is busy with many cameras | Raise Check interval to 5 s on cameras where brief movement doesn't matter. |
| Nothing is detected at all | Check that the camera streams. Motion detection needs a working stream. See Troubleshooting cameras. |
Leave an area out#
From Vigiora Server 1.13.0, you can draw motion zones over a camera's picture. Movement in an area you leave out is not motion: it starts no clip, no AI analysis and no alert, and it does not use your AI allowance. This suits a camera that faces a street. Zones hide nothing, so the picture and recordings stay the same.