detectMultiScale3Async method

Future<(VecRect, VecI32, VecF64)> detectMultiScale3Async(
  1. InputArray image, {
  2. double scaleFactor = 1.1,
  3. int minNeighbors = 3,
  4. int flags = 0,
  5. (int, int) minSize = (0, 0),
  6. (int, int) maxSize = (0, 0),
  7. bool outputRejectLevels = false,
})

Implementation

Future<(VecRect objects, VecI32 rejectLevels, VecF64 levelWeights)> detectMultiScale3Async(
  InputArray image, {
  double scaleFactor = 1.1,
  int minNeighbors = 3,
  int flags = 0,
  (int, int) minSize = (0, 0),
  (int, int) maxSize = (0, 0),
  bool outputRejectLevels = false,
}) {
  final objects = calloc<cvg.VecRect>();
  final rejectLevels = calloc<cvg.VecI32>();
  final levelWeights = calloc<cvg.VecF64>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_CascadeClassifier_detectMultiScale_3(
      ref,
      image.ref,
      objects,
      rejectLevels,
      levelWeights,
      scaleFactor,
      minNeighbors,
      flags,
      minSize.cvd.ref,
      maxSize.cvd.ref,
      outputRejectLevels,
      callback,
    ),
    (c) {
      return c.complete(
        (VecRect.fromPointer(objects), VecI32.fromPointer(rejectLevels), VecF64.fromPointer(levelWeights)),
      );
    },
  );
}