mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-11-03 03:09:16 +00:00
opt visualized func and add docker usage in cpu
This commit is contained in:
parent
59d0a00e1d
commit
b090627a11
@ -226,8 +226,7 @@ def text_visual(texts, scores, img_h=400, img_w=600, threshold=0.):
|
|||||||
|
|
||||||
font_size = 20
|
font_size = 20
|
||||||
txt_color = (0, 0, 0)
|
txt_color = (0, 0, 0)
|
||||||
font = ImageFont.truetype(
|
font = ImageFont.truetype("./doc/simfang.ttf", font_size, encoding="utf-8")
|
||||||
"../../doc/simfang.ttf", font_size, encoding="utf-8")
|
|
||||||
|
|
||||||
gap = font_size + 5
|
gap = font_size + 5
|
||||||
txt_img_list = []
|
txt_img_list = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user