detectMultiScale3 method

(VecRect, VecI32, VecF64) detectMultiScale3(
  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

(VecRect objects, VecI32 numDetections, VecF64 levelWeights) detectMultiScale3(
  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>();
  cvRun(
    () => cobjdetect.cv_CascadeClassifier_detectMultiScale_3(
      ref,
      image.ref,
      objects,
      rejectLevels,
      levelWeights,
      scaleFactor,
      minNeighbors,
      flags,
      minSize.cvd.ref,
      maxSize.cvd.ref,
      outputRejectLevels,
      ffi.nullptr,
    ),
  );
  return (VecRect.fromPointer(objects), VecI32.fromPointer(rejectLevels), VecF64.fromPointer(levelWeights));
}