I have numpy array with coordinates of polygon
array([[726, 462],
[724, 457],
[723, 448],
...
I have need to scale polygon relative to the center of polygon for draw in OpenCV.
CodePudding user response:
To calculate the center of a polygon, refer to the formula here: