otx.api.utils.detection_utils#

Detection utils.

Functions

detection2array(detections)

Convert list of OpenVINO Detection to a numpy array.

otx.api.utils.detection_utils.detection2array(detections: List) ndarray[source]#

Convert list of OpenVINO Detection to a numpy array.

Parameters:

detections (List) – List of OpenVINO Detection containing score, id, xmin, ymin, xmax, ymax

Returns:

numpy array with [label, confidence, x1, y1, x2, y2]

Return type:

np.ndarray