Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def predict_pipeline(image_file):
|
|
| 139 |
img = np.array(Image.open(image_file).convert('RGB'))
|
| 140 |
|
| 141 |
# Gọi OCR (cls=True giúp nhận diện chiều văn bản tốt hơn)
|
| 142 |
-
result = ocr.ocr(img
|
| 143 |
|
| 144 |
vis_img = draw_results(img.copy(), result, FONT_PATH)
|
| 145 |
md_out, json_out = format_output(result)
|
|
|
|
| 139 |
img = np.array(Image.open(image_file).convert('RGB'))
|
| 140 |
|
| 141 |
# Gọi OCR (cls=True giúp nhận diện chiều văn bản tốt hơn)
|
| 142 |
+
result = ocr.ocr(img)
|
| 143 |
|
| 144 |
vis_img = draw_results(img.copy(), result, FONT_PATH)
|
| 145 |
md_out, json_out = format_output(result)
|