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