opencv4nodejs
Version:
Asynchronous OpenCV 3.x nodejs bindings with JavaScript and TypeScript API.
10 lines (8 loc) • 310 B
TypeScript
import { Mat } from './Mat.d';
export class BackgroundSubtractorKNN {
readonly history: number;
readonly dist2Threshold: number;
readonly detectShadows: boolean;
constructor(history?: number, varThreshold?: number, detectShadows?: boolean);
apply(frame: Mat, learningRate?: number): Mat;
}