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,
}) async {
  final rval = cvRunAsync<VecRect>(
      (callback) => cobjdetect.HOGDescriptor_DetectMultiScaleWithParams_Async(
            ref,
            image.ref,
            hitThreshold,
            winStride.cvd.ref,
            padding.cvd.ref,
            scale,
            groupThreshold,
            useMeanshiftGrouping,
            callback,
          ), (c, rects) {
    return c.complete(VecRect.fromPointer(rects.cast<cvg.VecRect>()));
  });
  return rval;
}