BackgroundSubtractorKNN.create constructor
BackgroundSubtractorKNN.create({})
Implementation
factory BackgroundSubtractorKNN.create({
int history = 500,
double varThreshold = 16,
bool detectShadows = true,
}) {
final p = calloc<cvg.BackgroundSubtractorKNN>();
cvRun(
() => cvideo.cv_BackgroundSubtractorKNN_create_1(
history,
varThreshold,
detectShadows,
p,
),
);
return BackgroundSubtractorKNN(p);
}