detectMultiScale method

VecRect detectMultiScale(
  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),
})

DetectMultiScale detects objects of different sizes in the input Mat image. The detected objects are returned as a slice of image.Rectangle structs.

For further details, please see: http://docs.opencv.org/master/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498

Implementation

VecRect detectMultiScale(
  InputArray image, {
  double scaleFactor = 1.1,
  int minNeighbors = 3,
  int flags = 0,
  (int, int) minSize = (0, 0),
  (int, int) maxSize = (0, 0),
}) {
  final ret = calloc<cobjdetect.VecRect>();
  cvRun(
    () => cobjdetect.CascadeClassifier_DetectMultiScaleWithParams(
      ref,
      image.ref,
      ret,
      scaleFactor,
      minNeighbors,
      flags,
      minSize.cvd.ref,
      maxSize.cvd.ref,
    ),
  );
  return VecRect.fromPointer(ret);
}