mirror of
https://github.com/Zeyi-Lin/HivisionIDPhotos.git
synced 2026-09-24 23:30:42 +08:00
co-authored by
zhengzhicheng
parent
8af323e174
commit
db1b2d08f4
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user