createAsync static method

Future<BackgroundSubtractorKNN> createAsync({
  1. int history = 500,
  2. double varThreshold = 16,
  3. bool detectShadows = true,
})

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<cvg.BackgroundSubtractorKNN>())),
    );