detectMultiScaleAsync method
Future<VecRect>
detectMultiScaleAsync(
- InputArray image, {
- double scaleFactor = 1.1,
- int minNeighbors = 3,
- int flags = 0,
- (int, int) minSize = (0, 0),
- (int, int) maxSize = (0, 0),
})
Implementation
Future<VecRect> detectMultiScaleAsync(
InputArray image, {
double scaleFactor = 1.1,
int minNeighbors = 3,
int flags = 0,
(int, int) minSize = (0, 0),
(int, int) maxSize = (0, 0),
}) {
final pObjects = calloc<cvg.VecRect>();
return cvRunAsync0<VecRect>(
(callback) => cobjdetect.cv_CascadeClassifier_detectMultiScale_1(
ref,
image.ref,
pObjects,
scaleFactor,
minNeighbors,
flags,
minSize.cvd.ref,
maxSize.cvd.ref,
callback,
),
(c) {
return c.complete(VecRect.fromPointer(pObjects));
},
);
}