Modeling Guide

KNN Background Subtractor

K-Nearest Neighbors background subtractor.

Configuration Parameters

Parameter

Type

Description

history

int

The number of last frames that affect the background model.
dist2Threshold

float

The threshold on the squared distance between the pixel and the sample to decide whether a pixel is close to a data sample.

Input

Input

Type

Description

imageIn

message.python.image

Input image

Output

Output

Type

Description

imageOut

message.python.image

Output image