from typing import List


def yolo2hasty(yolo_bbox: List[float], image_width: int, image_height: int):
    """
    Converts normalized YOLO bbox format (Xn_center, Yn_center, Wn, Hn) to Hasty format (x_min, y_min, x_max, y_max)

    Args:
         yolo_bbox (list of floats): Normalized coordinates [X_center, Y_center, W, H] example [0.3, 0.4, 0.1, 0.25]
         image_width (int): Image width
         image_height (int): Image height
    """
    bbox = [
        int((float(yolo_bbox[1]) - float(yolo_bbox[3]) / 2) * image_width),
        int((float(yolo_bbox[2]) - float(yolo_bbox[4]) / 2) * image_height),
        int((float(yolo_bbox[1]) + float(yolo_bbox[3]) / 2) * image_width),
        int((float(yolo_bbox[2]) + float(yolo_bbox[4]) / 2) * image_height),
    ]
    return bbox