NMSBoxesAsync function
Implementation
Future<List<int>> NMSBoxesAsync(
VecRect bboxes,
VecF32 scores,
double scoreThreshold,
double nmsThreshold, {
double eta = 1.0,
int topK = 0,
}) async {
final rval = cvRunAsync<List<int>>(
(callback) => cdnn.NMSBoxesWithParams_Async(
bboxes.ref,
scores.ref,
scoreThreshold,
nmsThreshold,
eta,
topK,
callback,
),
(c, result) => c.complete(VecI32.fromPointer(result.cast<cdnn.VecI32>()).toList()),
);
return rval;
}