performNms

fun performNms(boxes: Array<FloatArray>, scores: FloatArray, iouThreshold: Float): List<Int>

Performs Non-Maximum Suppression (NMS) on a set of bounding boxes.

Return

A list of indices of the selected boxes.

Parameters

boxes

An array of bounding boxes, where each box is [left, top, right, bottom].

scores

A float array containing confidence scores for each box.

iouThreshold

The IoU threshold above which boxes are considered overlapping.