Analytics rules

Add zone, line, loitering and crowd rules to a camera, choose the objects they count, leave areas out, mask private areas, understand what a camera needs before its rules can run, and check alarm video with the AI check.

Content updated Applies to version 3.0.1 Print view kalytera-cloud analytics detection rules zones privacy-masks object-search
Contents

Analytics rules find people and vehicles in a camera's picture and raise an alarm when something happens in a zone or across a line. A portal administrator sets the rules on each camera's Detection tab.

Before you start

  • Your portal. Analytics is an add-on: Settings > Portal profile lists Video analytics when your portal has it.
  • The camera's stream. Analytics uses only the secondary stream: H.264, at most 3840×2160, 25 frames per second and 20 Mbit/s.
  • The connection type. RTSP, RTMPS push, Hikvision ISUP, Dahua AutoReg and Hikvision SDK cameras have analytics; Bridge Agent and Axis Edge Connector cameras do not.

Enter an RTSP camera's Secondary stream URL (optional) on its connection; for a push camera, see Connect a camera by RTMPS push. Hikvision and Dahua devices provide theirs. A camera is analyzed while at least one rule is on, an Ignore area or Region of interest included.

Add a rule

  1. In Cameras, select the camera, open its Detection tab and select Add rule.
  2. Enter a Rule name and choose the Trigger.
  3. Set the Minimum confidence for this rule: 5% to 99%, 50% by default.
  4. Optionally, under Restrict to specific objects, tick the object types the rule counts.
  5. Draw the zone, with at least three corners, or the line on the picture.
  6. Check that Enabled is on, then select Save rule.

Enabled stays off while the camera's analytics stream is missing: the tab shows Stream required or Stream unavailable. Under Rules on this camera, each rule shows its state, such as Active or Waiting for stream.

Rule types

TriggerMatches when
Zone intrusionA qualifying object enters the zone.
Line crossingAn object crosses the line in the Crossing direction: A → B, B → A or Both ways.
LoiteringOne object stays in the zone for the Dwell time (seconds), 10 by default.
OvercrowdingAt least the number in Minimum objects in zone, 3 by default, are in the zone at once.
Ignore areaNever raises an alarm. Objects inside it are left out.
Region of interestNever raises an alarm. Only objects inside it count.

Zone intrusion and overcrowding can alarm again for each new qualifying object that enters, subject to the cooldown. A zone, line or area looks at the bottom center of each object, where it stands. Objects left out by an area raise no alarm and draw no box; motion-based recording still reacts to them.

Objects and camera defaults

The object types are Person, Bicycle, Car, Motorcycle, Bus and Truck (includes buses). A rule with nothing ticked uses the camera's Default object classes, under Camera detection defaults: all but Bus unless you change them and select Save defaults. Detection confidence for recording, 35% by default, applies to detection-based recording, not to rules.

When a rule matches

  • Raise alarm turns the rule's alarm on or off; off, it reads No alarm, and matches still mark detection-based recording.
  • Severity is Info, Low, Medium, High or Critical.
  • Cooldown (seconds) is the shortest time between two alarms from the rule, 30 by default.

A rule has no schedule of its own. To raise alarms only while a site is armed, add the camera's rules to a Cloud arming group under What it protects > Analytic rules, set to Follows arming groups; see Cloud arming and site controls.

Privacy masks

On the camera's Privacy tab, select Add mask, draw it, optionally change its Mask name, and select Save masks; a camera has at most 8. Masks cover the snapshots Cloud makes, alarm snapshots included, and detection ignores them. Live video, recordings, clips, exports and Monitor's Take snapshot are not masked; to hide an area in video, mask it in the camera.

Search detected objects

With cloud recording, Investigate > Object search finds the objects stored from cameras with a rule on. In Monitor, Layout > Detection boxes draws detected objects on live video, with the last 5 seconds of each one's path at its feet. See Live view and playback.

AI check of alarms

With the AI verification add-on, the AI check looks for people and vehicles in the evidence video of panel zone, email and I/O input alarms. Set its default under Settings > Video evidence > AI check: the Mode, Off by default, what to Look for and the Maximum wait, 5 to 60 seconds, then Save AI check. A zone, email alarm or input can have its own beside its evidence cameras, each marked ready or not.

Observe only shows the result, under AI check on the alarm and in Alarms > Checked by AI, where operators record whether it was right. With Filter, a burglary alarm from a zone, an email input or a Site input waits for the check, at most the maximum wait, before it reaches the alarm receiving centre and the active alarms. A sighting sends it at once; it is Filtered by AI only when every camera was checked completely and nothing was seen. Forward now sends it anyway. Where the picture changes between two sampled frames, the check also looks between them.