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)

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 )
given bounding boxes with coordinates .