Co-authored-by: zhengzhicheng <@zhengzhicheng>
This commit is contained in:
justkeyKing
2024-09-09 11:38:14 +08:00
committed by GitHub
co-authored by zhengzhicheng
parent 8af323e174
commit db1b2d08f4
+2
View File
@@ -128,6 +128,8 @@ def generate_layout_image(
input_image = cv2.resize(input_image, (width, height))
if typography_rotate:
input_image = cv2.transpose(input_image)
input_image = cv2.flip(input_image, 0) # 0 表示垂直镜像
height, width = width, height
for arr in typography_arr:
locate_x, locate_y = arr[0], arr[1]