detectMultiScale method
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<cvg.VecRect>();
cvRun(
() => cobjdetect.cv_CascadeClassifier_detectMultiScale_1(
ref,
image.ref,
ret,
scaleFactor,
minNeighbors,
flags,
minSize.cvd.ref,
maxSize.cvd.ref,
ffi.nullptr,
),
);
return VecRect.fromPointer(ret);
}