def convert_coordinates_to_centers(bbox_coordinate_format):
    """convert bbox information from
    (y1, x1, y2, x2) format to
    (center_y, center_x, height, width) format."""

    height = bbox_coordinate_format[:, 2] - bbox_coordinate_format[:, 0]
    width = bbox_coordinate_format[:, 3] - bbox_coordinate_format[:, 1]
    center_y = bbox_coordinate_format[:, 0] + 0.5 * height
    center_x = bbox_coordinate_format[:, 1] + 0.5 * width

    return center_y, center_x, height, width