Static motion detection

Static motion detection compares every frame with a fixed model of the empty scene, learned once and kept until you reset it.

Application

Use static motion detection for fixed, clearly defined indoor scenes. Every change in the scene stays foreground.

Parameters

In the WebGUI, the settings are under Background subtraction in the Detection settings, with the Type Static. For the API, see Static.

Setting What it does Default Range

Initialization frames

The number of frames used to build the background model. More frames give a more accurate model of the scene. In the API: num_initialization_frames.

10

1 to 30

Minimum distance

The distance a point must have from the background model to be foreground. A smaller distance makes static motion detection more sensitive and can cause noise or false detections. In the API: min_distance.

0.15 m

0.05 to 0.5 m

Limitations

Situation What happens

The sensor is moved or rotated

The whole scene is reported as foreground. Reset the background after the sensor has been moved on purpose.

Permanent changes to the scene

An object placed in the scene stays foreground until the background is reset.

Removed objects

When a static object that is part of the model is removed, the area behind it is reported as foreground. This reports an object that is not there until the background is reset.

The active scan pattern is denser than the one the model was learned with

Foreground artifacts appear in the scene. Learn the model with a pattern at least as dense as every pattern you will run.

In a security zone, an object placed in the scene raises a constant alarm.

How the model works

Background model

Unlike the dynamic motion detection, the static model works in Cartesian coordinates: it is a point cloud of the scene.

Lifecycle

When a background model is stored, it is loaded at the start of the processing and applied immediately, without an initialization phase.

When no model is stored, it is learned from the live point cloud: the first frames, as many as configured, build the model, which is stored as soon as it is complete. Resetting the background discards the stored model and learns a new one in the same way.

The model is kept when the scan pattern of the sensor changes.

Algorithm

Static motion detection compares every point of the input point cloud with the nearest point of the background model. Points closer to the model than the Minimum distance are background, all other points are foreground.

A row of points along two model points with a circle of the minimum distance around each: the points inside the circles are classified as background, the points outside as foreground
Figure 1. Points close to the background model are removed (simplified 2D example)