Spaces:
Running
Running
Update app.py
Browse files
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 |
)
|