(bb)
return (x, y, w, h)
Given bounding boxes with coordinates (x_min, y_min, x_max, y_max), transform to
    (x_center, y_center, width, height)
Given bounding boxes with coordinates (x_min, y_min, x_max, y_max), transform to
    (x_center, y_center, width, height)
Given bounding boxes with coordinates ( x_min y_min x_max y_max ) transform to ( x_center y_center width height )
def _get_xywh(bb):
    """
    Given bounding boxes with coordinates (x_min, y_min, x_max, y_max), transform to
    (x_center, y_center, width, height)
    """
    w = bb[:, BB_XMAX_IDX] - bb[:, BB_XMIN_IDX] + FRCN_EPS
    h = bb[:, BB_YMAX_IDX] - bb[:, BB_YMIN_IDX] + FRCN_EPS
    x = bb[:, BB_XMIN_IDX] + 0.5 * w
    y = bb[:, BB_YMIN_IDX] + 0.5 * h

    return (x, y, w, h)
def _get_xywh ( bb ) : w = bb [ : , BB_XMAX_IDX ] - bb [ : , BB_XMIN_IDX ] + FRCN_EPS h = bb [ : , BB_YMAX_IDX ] - bb [ : , BB_YMIN_IDX ] + FRCN_EPS x = bb [ : , BB_XMIN_IDX ] + 0.5 * w y = bb [ : , BB_YMIN_IDX ] + 0.5 * h return ( x , y , w , h )