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