MOG2 Background Subtraction

Run MOG2 background subtraction algorithm in input. Negative Learn rate means automatic.

MOG2 Background Subtraction in Lightact's Layer Layouts visual scripting system.
Screenshot of MOG2 Background Subtraction node.

Inputs

TypeNameDescription
CvMatOpencv mat class
SourceA cv::Mat data structure
IntStores whole number value
HistoryAn integer value
FloatStores floating-point value
Learn rateA float value
IntStores whole number value
Variance thresholdAn integer value
BoolTruth value
Detect shadowsA boolean value

Outputs

TypeNameDescription
CvMatOpencv mat class
FG MaskReturns a cv::Mat data structure
CvMatOpencv mat class
BackgroundReturns a cv::Mat data structure