From db1b2d08f47ab54146d6cd7eebb52845f9614a27 Mon Sep 17 00:00:00 2001 From: justkeyKing <48624025+justkeyKing@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:38:14 +0800 Subject: [PATCH] fixe #59 (#84) Co-authored-by: zhengzhicheng <@zhengzhicheng> --- hivision/creator/layout_calculator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hivision/creator/layout_calculator.py b/hivision/creator/layout_calculator.py index ba74d3d..b79d090 100644 --- a/hivision/creator/layout_calculator.py +++ b/hivision/creator/layout_calculator.py @@ -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]