testDetectionLetterboxRemoval function

  1. @visibleForTesting
List<Detection> testDetectionLetterboxRemoval(
  1. List<Detection> dets,
  2. List<double> padding
)

Test-only: exposes the private letterbox-removal logic for unit tests.

Implementation

@visibleForTesting
List<Detection> testDetectionLetterboxRemoval(
  List<Detection> dets,
  List<double> padding,
) =>
    _detectionLetterboxRemoval(dets, padding);