def bbox_area(bbox):
    """Calculate the area of a bounding boxes.
    Args:
        bbox: (array of 4 numbers) [x1,y1,x2,y2]
    Returns:
        area: the area of a bbox
    """
    area = (bbox[3] - bbox[1])*(bbox[2] - bbox[0])
    return area