detectAsync method

Future<(VecPoint, VecPoint)> detectAsync(
  1. InputArray img, {
  2. double hitThreshold = 0,
  3. (int, int) winStride = (0, 0),
  4. (int, int) padding = (0, 0),
})

Implementation

Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync(
  InputArray img, {
  double hitThreshold = 0,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
}) {
  final foundLocations = calloc<cvg.VecPoint>();
  final searchLocations = calloc<cvg.VecPoint>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_HOGDescriptor_detect2(
      ref,
      img.ref,
      foundLocations,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      searchLocations,
      callback,
    ),
    (c) {
      return c.complete((VecPoint.fromPointer(foundLocations), VecPoint.fromPointer(searchLocations)));
    },
  );
}