video

BackgroundSubtractorKNN

fields

BackgroundSubtractorKNN = {
history : uint ,
dist2Threshold : number ,
detectShadows : boolean
}

constructors

constructor ( history : uint = 500 , varThreshold : number = 400 , detectShadows : boolean = true )

functions

apply

Result : Mat
apply ( frame : Mat , learningRate : number = -1 ) : Result