Creates a GSOC Background Subtractor
bs = cv.BackgroundSubtractorGSOC()
bs = cv.BackgroundSubtractorGSOC('OptionName', optionValue, ...)
Options
- MotionCompensation Whether to use camera motion
compensation. One of:
- NSamples Number of samples to maintain at each point of
the frame. default 20
- ReplaceRate Probability of replacing the old sample, i.e
how fast the model will update itself. default 0.003
- PropagationRate Probability of propagating to neighbors.
default 0.01
- HitsThreshold How many positives the sample must get
before it will be considered as a possible replacement.
default 32
- Alpha Scale coefficient for threshold. default 0.01
- Beta Bias coefficient for threshold. default 0.0022
- BlinkingSupressionDecay Blinking supression decay factor.
default 0.1
- BlinkingSupressionMultiplier Blinking supression
multiplier. default 0.1
- NoiseRemovalThresholdFacBG Strength of the noise removal
for background points. default 0.0004
- NoiseRemovalThresholdFacFG Strength of the noise removal
for foreground points. default 0.0008