def bbox_to_ybox(bbox):
    """Convert from corner bounding box to center/shape"""
    return [
            (bbox[1] + bbox[3]) / 2,
            (bbox[0] + bbox[2]) / 2,
            (bbox[3] - bbox[1]),
            (bbox[2] - bbox[0]),
    ]