suppressNonMaxBoxes

fun suppressNonMaxBoxes(boxes: List<<ERROR CLASS>>, topK: Int = -1, threshold: Float = 0.5f): List<<ERROR CLASS>>

Performs non-maximum suppression to filter out boxes with the IoU greater than threshold.

Parameters

boxes

boxes to filter

topK

how many boxes to include in the result. Negative or zero means to include everything.

threshold

threshold IoU value