def crop_image(image_array, bb):
    image_array_copy = image_array.clone()
    y_min = int(bb[0])
    x_min = int(bb[1])
    height = int(bb[2])
    width = int(bb[3])
    y_max = (y_min + height)
    x_max = (x_min + width)
    return image_array[y_min:y_max, x_min:x_max]
def crop_image(image_array, bb):
    image_array_copy = image_array.clone()
    y_min = int(bb[0])
    x_min = int(bb[1])
    height = int(bb[2])
    width = int(bb[3])
    y_max = (y_min + height)
    x_max = (x_min + width)
    return image_array[y_min:y_max, x_min:x_max]