Dynamic motion detection
Dynamic motion detection learns the scene from the incoming point clouds and keeps learning, so permanent changes in the scene become background over time.
Application
Use dynamic motion detection for outdoor scenes and scenes that change, for example with vegetation, weather or objects that are moved now and then.
Parameters
In the WebGUI, the settings are under Background subtraction in the Detection settings, with the Type Dynamic. For the API, see MixtureOfGaussians.
| Setting | What it does | Default | Range |
|---|---|---|---|
Initialization frames |
The number of frames used to build the first background model. More frames give a more accurate first model of the scene. In the API: |
10 |
1 to 30 |
Confidence slope |
The learning rate of the model. Higher values put more weight on new measurements, so the model adapts faster: moving vegetation becomes background sooner, but so can an object that should be detected. In the API: |
0.005 |
0.0001 to 0.01 |
Minimum confidence |
How confident the model of a ray must be before a measurement that matches it counts as background. Higher values require more confidence. Lower values make the model more adaptive, so new data becomes background faster. In the API: |
0.25 |
0.1 to 0.5 |
Object Awareness |
When on, the model is not updated around detected objects, by default those of medium and large size. This keeps objects that stand still for a while, such as parked cars, or that follow the same paths, such as people in a hallway, from becoming background. Small objects and noise, for example from vegetation, are still taken in. In the API: |
On in the WebGUI |
|
Auto merge duration for objects |
Under Object Awareness. After an object has been tracked this long, the area around it is learned anew, so the object becomes background. 0 switches the automatic merge off. |
10 min |
From Confidence slope and Minimum confidence, the WebGUI shows Background integration will take … frames: how many frames it takes until something new that stays in place becomes part of the background.
Limitations
| Limitation | What it means |
|---|---|
Learned again when the scan pattern changes |
The model has to be built again whenever the scan pattern changes. Keep the scene empty after a change. |
Removed objects leave an area the model does not know |
When a static object that was part of the background is removed, the sensor measures the area behind it for the first time. The shadow detection recognizes such points, because they lie behind a distance the model is sure of. An object that consists of them is marked as part of the background and raises no alarm in an object zone. The shadow detection does not catch every case: until the model has adapted, a part of the area can still be reported as an object that is not there. |
How the model works
Background model
Unlike the static motion detection, the dynamic model works on the distance measured along each laser ray. The scene is modelled separately for each ray with a mixture of Gaussian distributions.
Lifecycle
When the processing starts, the model is built from the configured number of initialization frames. While it runs, the sensor stores the model every few minutes. When the processing starts again within 5 minutes of the last stored model, for example after a restart of the processing or a reboot, that model is used instead of building a new one.
The model is built again from scratch:
-
When the scan pattern changes, because the laser rays change fundamentally.
-
When you reset the background.
Algorithm
For each point of the input point cloud, the model of its ray is updated. The Confidence slope sets how much each new measurement changes the model. A single ray can have more than one Gaussian distribution, each for another distance at which the ray is often reflected, for example when it passes through a semi-transparent material such as glass.
Every time the model is updated, it is also applied. The Minimum confidence decides whether a distribution is reliable enough. Each point is then classified as background when it matches a reliable distribution of its ray, and as foreground otherwise.