From b090627a114e6409c62cf70ce9050faea43e9bb1 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 27 May 2020 15:03:12 +0800 Subject: [PATCH] opt visualized func and add docker usage in cpu --- tools/infer/utility.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 125b1714..492721e0 100755 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -226,8 +226,7 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.): font_size = 20 txt_color = (0, 0, 0) - font = ImageFont.truetype( - "../../doc/simfang.ttf", font_size, encoding="utf-8") + font = ImageFont.truetype("./doc/simfang.ttf", font_size, encoding="utf-8") gap = font_size + 5 txt_img_list = []