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) => cobjdetect.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<cobjdetect.VecPoint>()),
VecF64.fromPointer(weights.cast<cobjdetect.VecF64>()),
VecPoint.fromPointer(searchLocations.cast<cobjdetect.VecPoint>())
),
);
});
return rval;
}