cv3.utils.rel2abs
- cv3.utils.rel2abs(*coords, width, height)[source]
Convert relative coordinates to absolute coordinates.
- Parameters:
*coords – Iterable of coordinates in the form (x0, y0, x1, y1, …, xn, yn).
width (int) – Width of the image or reference frame.
height (int) – Height of the image or reference frame.
- Yields:
int – Absolute coordinates rounded to integers.
- Raises:
AssertionError – If the number of coordinates is not even.