# draugr.opencv_utilities.bounding_boxes.evaluation.jaccard_overlap_numpy

draugr.opencv_utilities.bounding_boxes.evaluation.jaccard_overlap_numpy(box_a: ndarray, box_b: ndarray ) → ndarray

  Compute the jaccard overlap of two sets of boxes. The jaccard overlap is simply the intersection over union of two boxes. E.g.: A ∩ B / A ∪ B = A ∩ B / (area(A) + area(B) - A ∩ B) Args: box_a: Multiple bounding boxes, Shape: [num_boxes,4] box_b: Single bounding box, Shape: [4] Return: jaccard overlap: Shape: [box_a.shape[0], box_a.shape[1]]