detectMultiScaleAsync method
Future<VecRect>
detectMultiScaleAsync(
- 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,
})
Implementation
Future<VecRect> detectMultiScaleAsync(
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,
}) async {
final rval = cvRunAsync<VecRect>(
(callback) => cobjdetect.HOGDescriptor_DetectMultiScaleWithParams_Async(
ref,
image.ref,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
scale,
groupThreshold,
useMeanshiftGrouping,
callback,
), (c, rects) {
return c.complete(VecRect.fromPointer(rects.cast<cobjdetect.VecRect>()));
});
return rval;
}