testNms function

  1. @visibleForTesting
List<Detection> testNms(
  1. List<Detection> dets,
  2. double iouThresh,
  3. double scoreThresh
)

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);