fix: design 回参新增镜像旋转参数
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
This commit is contained in:
@@ -244,11 +244,11 @@ def transpose_rotate(layer, image):
|
||||
paste_x, paste_y = layer['adaptive_position'][1], layer['adaptive_position'][0]
|
||||
|
||||
# transpose左右是1 上下是-1
|
||||
if transpose[0] == 1:
|
||||
if transpose[0] == -1:
|
||||
# 左右
|
||||
image = image.transpose(0)
|
||||
|
||||
if transpose[1] == 1:
|
||||
if transpose[1] == -1:
|
||||
# 上下
|
||||
image = image.transpose(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user