ObjectDetectionAveragePrecision.filter_res#

ObjectDetectionAveragePrecision.filter_res(res: ndarray, iou: Optional[float] = None, area: Optional[str] = None, max_dets: Optional[int] = None)[source]#

Get the value of a result by the filtering values.

Parameters
res: np.array

either precision or recall when using the ‘2’ return option

ioufloat, default: None

filter by iou threshold

areastr, default: None

filter by are range name [‘small’, ‘medium’, ‘large’, ‘all’]

max_detsint, default: None

filter by max detections

Returns
np.array

The filtered result.