img是原图,src_pts为原图中点的坐标
for i in range(n):#旋转n次
h, w, c = img.shape
img = np.rot90(img)
src_pts[:,0], src_pts[:,1] = src_pts[:, 1], w-src_pts[:,0]
img是原图,src_pts为原图中点的坐标
for i in range(n):#旋转n次
h, w, c = img.shape
img = np.rot90(img)
src_pts[:,0], src_pts[:,1] = src_pts[:, 1], w-src_pts[:,0]