Learn the background

This page documents an earlier firmware release. Read this page for the latest release

Motion detection compares every frame with a learned model of the scene, the background. Points that match it are background, such as the ground, walls and fences. Everything else is foreground.

Object tracking and the security zones work on the foreground.

Type How the background is kept Use it for

Dynamic

Adapts all the time and slowly takes in permanent changes.

Outdoor and changing scenes

Static

Learned once and kept until you reset it. Every change to the scene stays foreground.

Fixed indoor scenes

Reset the background only while the scene is empty. Everything in the scene while the background is learned becomes part of it, and nothing can be detected at that place afterwards. With static motion detection, learn the background with a scan pattern at least as dense as every pattern you will run.

Reset the background

  1. Make sure nothing moves in the field of view of the sensor.

  2. Click Circular arrows in one of two places:

    • In the sidebar, click Configuration. On the Motion Detection card, click Circular arrows next to Reset background. Its tooltip reads rebuild background model. The card shows resetting background until the sensor has accepted the request.

      Motion Detection card with the Reset background button
      Figure 1. Motion Detection card on the Configuration Dashboard
    • In the sidebar, click Configuration > Zone Management. In the Detection row at the bottom of the left panel, click Circular arrows, Reset/Re-build background. Here you see the result on the live point cloud immediately.

      Zone Management with the sidebar, the left panel and the live point cloud: at the bottom of the left panel, in the Detection row, the circular arrows are highlighted and show the tooltip Reset/Re-build background
      Figure 2. Configuration > Zone Management: the reset button in the Detection row at the bottom of the left panel
  3. Keep the scene empty while the sensor records the initialization frames. Depending on the frame rate and the number of Initialization frames, this can take up to 60 seconds.

Choose static or dynamic motion detection

  1. In Configuration > Zone Management, close any open zone.

  2. In the Detection row, click Gear, Detection settings.

    The Detection settings panel opens on the right.

  3. Under Background subtraction, choose the Type: Dynamic or Static.

    Detection settings panel with Background subtraction, Type Static selected, Initialization frames 10 and Minimum distance 0.15 m
    Figure 3. Background subtraction with the Type Static
  4. Adjust the settings of that type, see below.

  5. Click Apply.

  6. Reset the background with the scene empty.

Detection settings panel with Background subtraction Type Dynamic, Initialization frames, Background model with Confidence slope and Minimum confidence, Object Awareness with Auto merge duration for objects, Foreground neighbor filter with Minimum points and Neighbor radius, the Adaptive noise filter switch and the Close and Apply buttons
Figure 4. Detection settings with dynamic background subtraction

Static

Setting What it does Range Default

Initialization frames

Frames used to learn the background. More frames give a more accurate model, and the scene has to stay empty for longer.

1 to 30

10

Minimum distance

Distance a point must have from the background to count as foreground. A smaller value is more sensitive and can cause noise or false detections.

0.05 to 0.5 m

0.15 m

Dynamic

Setting What it does Range Default

Initialization frames

Frames used to learn the first background.

1 to 30

10

Confidence slope

How fast the background is updated. A higher value takes in noise such as moving vegetation faster, but can also take in objects that should raise an alarm.

0.0001 to 0.01

0.005

Minimum confidence

How much noise the background and foreground are expected to have.

0.1 to 0.5

0.25

Object Awareness

When on, the background is not updated around detected objects. This keeps objects that stand still for a while, or that follow the same paths, from becoming background.

On or off

On

Auto merge duration for objects

With Object Awareness on: after an object has been tracked this long, its area is learned anew and the object becomes background. 0 switches the automatic merge off.

0 to 20 min

10 min

Below these two settings, Background integration will take …​ frames shows how many frames it takes until something new that stays in place becomes part of the background. It is computed from the Confidence slope and the Minimum confidence.

Further settings in the same panel

Setting What it does

Foreground neighbor filter

Removes foreground points with too few neighbours: fewer than Minimum points within the Neighbor radius. See Detection.

Adaptive noise filter 🚧

Removes foreground points with low reflectivity. Only available with the foreground neighbor filter on.

Event history

Records the states and objects 10 seconds before and after each event for the event history.

Minimum object surface area sets the bounding box surface in m² above which an object counts as Small, Medium or Large, see Classification.

The buttons at the bottom:

Button What it does

Apply

Stores the settings. Greyed out until something changed.

Close

Closes the panel. Reads Reset once you have changed something, and then restores the stored settings.

Factory reset

Hold Close or Reset pressed. Restores the factory detection settings.

Troubleshooting

After changing the scan pattern, the whole scene is foreground

With dynamic motion detection, wait for the initialization frames; the background is learned again on its own. With static motion detection, reset the background with the scene empty.

Moving vegetation keeps appearing as foreground

Use dynamic motion detection, raise the Confidence slope a little, or, if the application allows it, put an exclusion zone around the vegetation.

An object that was removed leaves a ghost object behind

The ground behind it was hidden while the background was learned. Dynamic motion detection takes it in over time. With static motion detection, reset the background.