Learn the background
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, the security zones and the traffic lanes work on the foreground. Occupancy zones count all points inside them and do not depend on the background.
| Type | How the background is kept | Use it for |
|---|---|---|
Adapts all the time and slowly takes in permanent changes. |
Outdoor and changing scenes |
|
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
-
Make sure nothing moves in the field of view of the sensor.
-
Click
in one of two places:
-
In the sidebar, click Configuration. On the Motion Detection card, click
next to Reset background. Its tooltip reads rebuild background model. The card shows resetting background until the sensor has accepted the request.
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
, Reset/Re-build background. Here you see the result on the live point cloud immediately.
Figure 2. Configuration > Zone Management: the reset button in the Detection row at the bottom of the left panel
-
-
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
-
In Configuration > Zone Management, close any open zone.
-
In the Detection row, click
, Detection settings.
The Detection settings panel opens on the right.
-
Under Background subtraction, choose the Type: Dynamic or Static.
Figure 3. Background subtraction with the Type Static -
Adjust the settings of that type, see below.
-
Click Apply.
-
Reset the background with the scene empty.
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 security zones that count people use these classes. Traffic lanes classify vehicles by their height or a model instead and ignore these limits, 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.