(box_a, box_b)
return inter / area_a
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]]
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]]
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 ]]
def object_converage_numpy(box_a, box_b):
    """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]]
    """
    inter = intersect(box_a, box_b)
    area_a = ((box_a[:, 2] - box_a[:, 0]) *
              (box_a[:, 3] - box_a[:, 1]))  # [A,B]
    area_b = ((box_b[2] - box_b[0]) *
              (box_b[3] - box_b[1]))  # [A,B]
    return inter / area_a
def object_converage_numpy ( box_a , box_b ) : inter = intersect ( box_a , box_b ) area_a = ( ( box_a [ : , 2 ] - box_a [ : , 0 ] ) * ( box_a [ : , 3 ] - box_a [ : , 1 ] ) ) # [A,B] area_b = ( ( box_b [ 2 ] - box_b [ 0 ] ) * ( box_b [ 3 ] - box_b [ 1 ] ) ) # [A,B] return inter / area_a