Table of Contents

Class BackgroundSubtractorCNT

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Background subtraction based on counting. About as fast as MOG2 on a high end system. More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3).

public class BackgroundSubtractorCNT : BackgroundSubtractor, IDisposable
Inheritance
BackgroundSubtractorCNT
Implements
Inherited Members

Properties

IsParallel

Whether we're parallelizing the algorithm.

MaxPixelStability

Maximum allowed credit for a pixel in history.

MinPixelStability

Number of frames with same pixel color to consider stable.

UseHistory

Whether we're giving a pixel credit for being stable for a long time.

Methods

Create(int, bool, int, bool)

Creates a CNT Background Subtractor