SWHL commited on
Commit
ea0f4b5
1 Parent(s): 13281f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -115,7 +115,6 @@ def inference(
115
  dt_boxes, rec_res, scores = list(zip(*ocr_result))
116
  font_path = Path("fonts") / font_dict.get(lan_name)
117
 
118
- img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
119
  vis_img = visualize(
120
  Image.fromarray(img), dt_boxes, rec_res, scores, font_path=str(font_path)
121
  )
 
115
  dt_boxes, rec_res, scores = list(zip(*ocr_result))
116
  font_path = Path("fonts") / font_dict.get(lan_name)
117
 
 
118
  vis_img = visualize(
119
  Image.fromarray(img), dt_boxes, rec_res, scores, font_path=str(font_path)
120
  )