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(
    () => cffi.BackgroundSubtractorKNN_CreateWithParams(
      history,
      varThreshold,
      detectShadows,
      p,
    ),
  );
  return BackgroundSubtractorKNN(p);
}