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),
}) async {
final rval = cvRunAsync3<(VecPoint, VecF64, VecPoint)>(
(callback) => cffi.HOGDescriptor_Detect_Async(
ref,
img.ref,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
callback,
), (c, foundLocations, weights, searchLocations) {
return c.complete(
(
VecPoint.fromPointer(foundLocations.cast<cvg.VecPoint>()),
VecF64.fromPointer(weights.cast<cvg.VecF64>()),
VecPoint.fromPointer(searchLocations.cast<cvg.VecPoint>())
),
);
});
return rval;
}