def convert_openlayers_roi_to_numpy_image_roi(roi: list, image_height: int) -> list:
    """In both openlayers and numpy, the same roi format applies

    Args:
        roi (list): roi in format [x, y, width, height]
        image_height (int): height of the original image from which the roi is cropped

    Returns:
        list: [description]
    """
    [x, y, width, height] = roi
    return [x, image_height - y - height, width, height]