(boxes, add1=False)
Computes area of boxes.

    Args:
        boxes: Numpy array with shape [N, 4] holding N boxes

    Returns:
        a numpy array with shape [N*1] representing box areas
Computes area of boxes.
Computes area of boxes .
def area(boxes, add1=False):
    """Computes area of boxes.

    Args:
        boxes: Numpy array with shape [N, 4] holding N boxes

    Returns:
        a numpy array with shape [N*1] representing box areas
    """
    if add1:
        return (boxes[:, 2] - boxes[:, 0] + 1.0) * (
            boxes[:, 3] - boxes[:, 1] + 1.0)
    else:
        return (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1])
def area ( boxes , add1 = False ) : if add1 : return ( boxes [ : , 2 ] - boxes [ : , 0 ] + 1.0 ) * ( boxes [ : , 3 ] - boxes [ : , 1 ] + 1.0 ) else : return ( boxes [ : , 2 ] - boxes [ : , 0 ] ) * ( boxes [ : , 3 ] - boxes [ : , 1 ] )