filter_scores_greater_than#

filter_scores_greater_than(boxlist: NpBoxList, thresh: float) NpBoxList[source]#

Filter to keep only boxes with score exceeding a given threshold.

This op keeps the collection of boxes whose corresponding scores are greater than the input threshold.

Parameters:
  • boxlist (BoxList) – A BoxList holding N boxes. Must contain a ‘scores’ field representing detection scores.

  • thresh (float) – scalar threshold

Returns:

A BoxList holding M boxes. where M <= N

Return type:

BoxList

Raises:

ValueError – If boxlist not a BoxList object or if it does not have a scores field.