detectAsync method
Implementation
Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync(
InputArray img, {
double hitThreshold = 0,
(int, int) winStride = (0, 0),
(int, int) padding = (0, 0),
}) {
final foundLocations = calloc<cvg.VecPoint>();
final searchLocations = calloc<cvg.VecPoint>();
return cvRunAsync0(
(callback) => cobjdetect.cv_HOGDescriptor_detect2(
ref,
img.ref,
foundLocations,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
searchLocations,
callback,
),
(c) {
return c.complete((VecPoint.fromPointer(foundLocations), VecPoint.fromPointer(searchLocations)));
},
);
}