def Nrotate(degrees,x,y,cx,cy):
angle = degrees/180*3.1415926
nRotatex = (x-cx)*math.cos(angle) - (y-cy)*math.sin(angle) + cx
nRotatey = (x-cx)*math.sin(angle) + (y-cy)*math.cos(angle) + cy
return nRotatex, nRotatey
opencv角度旋转
最新推荐文章于 2022-09-02 15:30:23 发布