BackgroundSubtractorKNN.create constructor

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

Implementation

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