Home > other >  Scale polygon relative to the center
Scale polygon relative to the center

Time:05-28

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: enter image description here

  • Related