draugr.opencv_utilities.bounding_boxes.evaluation.remove_null_boxes

draugr.opencv_utilities.bounding_boxes.evaluation.remove_null_boxes(boxes: ndarray, labels: ndarray) Tuple[ndarray, ndarray][source]

Removes bounding boxes of W or H equal to 0 and its labels

Args: boxes (ndarray): NP Array with bounding boxes as lines

  • BBOX[x1, y1, x2, y2]

labels (labels): Corresponding labels with boxes

Returns: ndarray: Valid bounding boxes ndarray: Corresponding labels