"vscode:/vscode.git/clone" did not exist on "1d3ef67b096516918836b4df5d8923c6c6e6977e"
Unverified Commit 25a5ca6c authored by dyning's avatar dyning Committed by GitHub
Browse files

Update utility.py

parent ed177f8c
......@@ -172,7 +172,7 @@ def draw_ocr(image, boxes, txts, scores, draw_txt=True, drop_score=0.5):
continue
font = ImageFont.truetype(
"./doc/simfang.ttf", font_size, encoding="utf-8")
new_txt = str(count) + ': ' + txt + ' ' + str(scores[count])
new_txt = str(count) + ': ' + txt + ' ' + '%.3f' % (scores[count])
draw_txt.text(
(20, gap * (count + 1)), new_txt, txt_color, font=font)
count += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment