当我已经拥有旧的图像大小新图像大小和多边形坐标时,找到新的多边形坐标
当我已经拥有旧坐标时,我想调整多边形大小,为[(100,200),(200,300),(300,400),(50,60),(90,100),(90,100),(400,300)],旧图像大小为1980x1080和新图像尺寸为640x480。如何获得多边形的新坐标?
I want to resize a polygon when I already have it's old coordinate as [(100,200),(200,300),(300,400),(50,60),(90,100),(400,300)] and old Image size is 1980x1080 and new image size is 640x480. How can I get new Coordinates of Polygon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将X坐标乘以640/1980,将Y-Coordine乘以480/1080。
由于您标记了
numpy
:Multiply the x-coordinates by 640/1980 and the y-coordinates by 480/1080.
Since you tagged
numpy
: