createAsync static method
Implementation
static Future<BackgroundSubtractorKNN> createAsync({
int history = 500,
double varThreshold = 16,
bool detectShadows = true,
}) async =>
cvRunAsync(
(callback) => cvideo.BackgroundSubtractorKNN_CreateWithParams_Async(
history,
varThreshold,
detectShadows,
callback,
),
(c, p) => c.complete(BackgroundSubtractorKNN(p.cast<cvideo.BackgroundSubtractorKNN>())),
);