cv3.utils.ccwh2xyxy
- cv3.utils.ccwh2xyxy(xc, yc, w, h)[source]
Convert from (center_x, center_y, width, height) to (x0, y0, x1, y1) format.
- Parameters:
xc (float) – X-coordinate of the center.
yc (float) – Y-coordinate of the center.
w (float) – Width of the rectangle.
h (float) – Height of the rectangle.
- Returns:
(x0, y0, x1, y1) coordinates of the rectangle.
- Return type:
tuple