Skip to content

Node Reference

KNN Background Subtraction

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

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


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


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