detectMultiScale method

VecRect detectMultiScale(
  1. InputArray image, {
  2. double hitThreshold = 0,
  3. int minNeighbors = 3,
  4. (int, int) winStride = (0, 0),
  5. (int, int) padding = (0, 0),
  6. double scale = 1.05,
  7. double groupThreshold = 2.0,
  8. bool useMeanshiftGrouping = false,
})

DetectMultiScale calls DetectMultiScale but allows setting parameters The detected objects are returned as a slice of image.Rectangle structs.

For further details, please see: https://docs.opencv.org/master/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948

Implementation

VecRect detectMultiScale(
  InputArray image, {
  double hitThreshold = 0,
  int minNeighbors = 3,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
  double scale = 1.05,
  double groupThreshold = 2.0,
  bool useMeanshiftGrouping = false,
}) {
  final rects = calloc<cobjdetect.VecRect>();
  cvRun(
    () => cobjdetect.HOGDescriptor_DetectMultiScaleWithParams(
      ref,
      image.ref,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      scale,
      groupThreshold,
      useMeanshiftGrouping,
      rects,
    ),
  );
  return VecRect.fromPointer(rects);
}