detectMultiScaleAsync method

Future<VecRect> detectMultiScaleAsync(
  1. InputArray image, {
  2. double hitThreshold = 0,
  3. int minNeighbors = 3,
  4. (int, int) winStride = (0, 0),
  5. (int, int) padding = (0, 0),
  6. double scale = 1.05,
  7. double groupThreshold = 2.0,
  8. bool useMeanshiftGrouping = false,
})

Implementation

Future<VecRect> detectMultiScaleAsync(
  InputArray image, {
  double hitThreshold = 0,
  int minNeighbors = 3,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
  double scale = 1.05,
  double groupThreshold = 2.0,
  bool useMeanshiftGrouping = false,
}) {
  final rects = calloc<cvg.VecRect>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_HOGDescriptor_detectMultiScale_1(
      ref,
      image.ref,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      scale,
      groupThreshold,
      useMeanshiftGrouping,
      rects,
      callback,
    ),
    (c) {
      return c.complete(VecRect.fromPointer(rects));
    },
  );
}