def set_bb_to_black(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)
    mask_array = np.zeros(image_array.shape, dtype=int)
    mask_array[y_min:y_max, x_min:x_max] = 1
    zero_array = np.where((mask_array == 1))
    image_array_copy[(zero_array[0], zero_array[1])] = 0
    return image_array_copy
def set_bb_to_black(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)
    mask_array = np.zeros(image_array.shape, dtype=int)
    mask_array[y_min:y_max, x_min:x_max] = 1
    zero_array = np.where((mask_array == 1))
    image_array_copy[(zero_array[0], zero_array[1])] = 0
    return image_array_copy