testNms function
Test-only: exposes the private weighted-NMS logic for unit tests.
Implementation
@visibleForTesting
List<Detection> testNms(
List<Detection> dets,
double iouThresh,
double scoreThresh,
) => _weightedNmsDetections(dets, iouThresh, scoreThresh);