parameters: (boxes)
return_statement: return np.hstack((boxes[:, 0:2], boxes[:, 2:4] - boxes[:, 0:2] + 1))
docstring: Convert [x1 y1 x2 y2] box format to [x y w h] format.
docstring_summary: Convert [x1 y1 x2 y2] box format to [x y w h] format.
docstring_tokens: Convert [ x1 y1 x2 y2 ] box format to [ x y w h ] format .
function: def xyxy_to_xywh(boxes):
      """Convert [x1 y1 x2 y2] box format to [x y w h] format."""
      return np.hstack((boxes[:, 0:2], boxes[:, 2:4] - boxes[:, 0:2] + 1))
function_tokens: def xyxy_to_xywh ( boxes ) : return np . hstack ( ( boxes [ : , 0 : 2 ] , boxes [ : , 2 : 4 ] - boxes [ : , 0 : 2 ] + 1 ) )