Kaushik Bar commited on
Commit
b5ba74d
·
1 Parent(s): 6956974
Files changed (1) hide show
  1. app.py +2 -2
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.load_default()
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