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 = VecPoint();
final searchLocations = VecPoint();
return cvRunAsync0(
(callback) => cobjdetect.cv_HOGDescriptor_detect2(
ref,
img.ref,
foundLocations.ptr,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
searchLocations.ptr,
callback,
),
(c) {
return c.complete((foundLocations, searchLocations));
},
);
}