def get_bbox(points2d_px: list, width: int, height: int, clip=True):
    """Get 2d bounding box in pixel for a normalized 2d point list.

    Args:
        points2d_px (list): List of normalized 2d points.
        width (int): Image width in pixels.
        height (int): Image heigh in pixels.
        clip (bool, optional): Clip values outside of picture. Defaults to True.

    Returns:
        tuple: x_min, y_min, x_max, y_max in pixels.
    """
    x_min = 10000
    x_max = 0
    y_min = 10000
    y_max = 0
    for point2d_px in points2d_px:
        x,y = point2d_px
        #x*=width
        #y*=height
        if x < x_min:
            x_min=x
        if x > x_max:
            x_max=x
        if y < y_min:
            y_min=y
        if y > y_max:
            y_max=y
    if clip:
        x_min=max(x_min,0)
        y_min=max(y_min,0)
        x_max=min(x_max,width)
        y_max=min(y_max,height)
    return x_min, y_min, x_max, y_max