cv3.utils.xywh2xyxy
- cv3.utils.xywh2xyxy(x0, y0, w, h)[source]
Convert from (x, y, width, height) to (x0, y0, x1, y1) format.
- Parameters:
x0 (float) – X-coordinate of the top-left corner.
y0 (float) – Y-coordinate of the top-left corner.
w (float) – Width of the rectangle.
h (float) – Height of the rectangle.
- Returns:
(x0, y0, x1, y1) coordinates of the rectangle.
- Return type:
tuple