Click or drag to resize
Accord.NET (logo)

SimpleBackgroundModelingDetectorMillisecondsPerBackgroundUpdate Property

Milliseconds per background update, [0, 5000].

Namespace:  Accord.Vision.Motion
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
Syntax
public int MillisecondsPerBackgroundUpdate { get; set; }
Request Example View Source

Property Value

Type: Int32
Remarks

The value represents alternate way of controlling the speed of modeled background adaptation to scene changes. The value sets number of milliseconds, which should elapse between two consequent video frames to result in background update for one intensity level. For example, if this value is set to 100 milliseconds and the amount of time elapsed between two last video frames equals to 350, then background frame will be update for 3 intensity levels in the direction to decrease difference with current video frame (the remained 50 milliseconds will be added to time difference between two next consequent frames, so the accuracy is preserved).

Unlike background update method controlled using FramesPerBackgroundUpdate method, the method guided by this property is not affected by changes in frame rates. If, for some reasons, a video source starts to provide delays between frames (frame rate drops down), the amount of background update still stays consistent. When background update is controlled by this property, it is always possible to estimate amount of time required to change, for example, absolutely black background (0 intensity values) into absolutely white background (255 intensity values). If value of this property is set to 100, then it will take approximately 25.5 seconds for such update regardless of frame rate.

Note Note
Background update controlled by this property is slightly slower then background update controlled by FramesPerBackgroundUpdate property, so it has a bit greater impact on performance.

Note Note
If this property is set to 0, then corresponding background updating method is not used (turned off), but background update guided by FramesPerBackgroundUpdate property is used.

Default value is set to 0.

See Also