def bounding_box(points):
    """Compute the bounding box of a polygon
    * Sterblue image axis: (0,0): top left corner, x positive to the right, y positive upward
    * COCO image axis: (0,0): top left corner, x positive to the right, y positive downward

    Args:
        points: List of points [ [x0, y0], [x1, y1], etc.]
    Return:
        Bounding box output format: [xmin, ymin, width, height]
    """
    x_coordinates, y_coordinates = zip(*points)
    xmin = min(x_coordinates)
    ymin = -max(y_coordinates)
    width = max(x_coordinates) - min(x_coordinates)
    height = max(y_coordinates) - min(y_coordinates)
    area = width * height
    return {"geometry": [xmin, ymin, width, height], "area": area}