SWHL commited on
Commit
53b0bd9
·
1 Parent(s): f725680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def inference(img_path, box_thresh=0.5, unclip_ratio=1.6, text_score=0.5,
65
  font_path = Path('fonts') / font_dict.get(lan_name)
66
  img_save_path = visualize(img_path, dt_boxes, rec_res, scores,
67
  font_path=str(font_path))
68
- out_dict = {str(i): {'rec_txt': rec, 'score': score,
69
  for i, (rec, score) in enumerate(zip(rec_res, scores))}
70
  return img_save_path, out_dict, out_log
71
 
 
65
  font_path = Path('fonts') / font_dict.get(lan_name)
66
  img_save_path = visualize(img_path, dt_boxes, rec_res, scores,
67
  font_path=str(font_path))
68
+ out_dict = {str(i): {'rec_txt': rec, 'score': score}
69
  for i, (rec, score) in enumerate(zip(rec_res, scores))}
70
  return img_save_path, out_dict, out_log
71