Skip to content

Commit

Permalink
fix multi-line txt display
Browse files Browse the repository at this point in the history
  • Loading branch information
LDOUBLEV committed May 29, 2020
1 parent c2cede1 commit 9058e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def create_blank_img():
first_line = False
else:
new_txt = ' ' + txt
draw_txt.text((0, gap * (count + 1)), new_txt, txt_color, font=font)
draw_txt.text((0, gap * count), new_txt, txt_color, font=font)
txt = tmp[img_w // font_size - 4:]
if count >= img_h // gap - 1:
txt_img_list.append(np.array(blank_img))
Expand Down

0 comments on commit 9058e00

Please sign in to comment.