detect2Async method

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

Implementation

Future<(VecPoint foundLocations, VecF64 weights, VecPoint searchLocations)> detect2Async(
  InputArray img, {
  double hitThreshold = 0,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
}) {
  final foundLocations = VecPoint();
  final searchLocations = VecPoint();
  final weights = VecF64();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_HOGDescriptor_detect(
      ref,
      img.ref,
      foundLocations.ptr,
      weights.ptr,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      searchLocations.ptr,
      callback,
    ),
    (c) {
      return c.complete((foundLocations, weights, searchLocations));
    },
  );
}