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