Learn R Programming

torchvision (version 0.7.0)

box_xyxy_to_xywh: box_xyxy_to_xywh

Description

Converts bounding boxes from \((x_{min}, y_{min}, x_{max}, y_{max})\) format to (x, y, w, h) format. (x1, y1) refer to top left of bounding box (x2, y2) refer to bottom right of bounding box

Usage

box_xyxy_to_xywh(boxes)

Value

boxes (Tensor[N, 4]): boxes in (x, y, w, h) format.

Arguments

boxes

(Tensor[N, 4]): boxes in \((x_{min}, y_{min}, x_{max}, y_{max})\) which will be converted.