Kaushik Bar
commited on
Commit
·
b5ba74d
1
Parent(s):
6956974
zsod
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ def inference(img, lang):
|
|
11 |
boxes = [line[0] for line in result]
|
12 |
txts = [line[1][0] for line in result]
|
13 |
scores = [line[1][1] for line in result]
|
14 |
-
|
15 |
-
font = ImageFont.
|
16 |
im_show = draw_ocr(image, boxes, txts, scores,
|
17 |
font_path=font)
|
18 |
|
|
|
11 |
boxes = [line[0] for line in result]
|
12 |
txts = [line[1][0] for line in result]
|
13 |
scores = [line[1][1] for line in result]
|
14 |
+
|
15 |
+
font = ImageFont.truetype("simfang.ttf", 18)
|
16 |
im_show = draw_ocr(image, boxes, txts, scores,
|
17 |
font_path=font)
|
18 |
|