detect2Async method
Future<(VecPoint, VecF64, VecPoint)>
detect2Async(
- InputArray img, {
- double hitThreshold = 0,
- (int, int) winStride = (0, 0),
- (int, int) padding = (0, 0),
})
Implementation
Future<(VecPoint foundLocations, VecF64 weights, VecPoint searchLocations)> detect2Async(
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>();
final weights = calloc<cvg.VecF64>();
return cvRunAsync0(
(callback) => cobjdetect.cv_HOGDescriptor_detect(
ref,
img.ref,
foundLocations,
weights,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
searchLocations,
callback,
),
(c) {
return c.complete(
(
VecPoint.fromPointer(foundLocations),
VecF64.fromPointer(weights),
VecPoint.fromPointer(searchLocations),
),
);
},
);
}