Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def predict(filepath):
|
|
58 |
max_y = min(height-1, max_y)
|
59 |
# crop the region of interest (ROI)
|
60 |
cropped_image = inp[min_y:max_y,min_x:max_x] # crop the image
|
61 |
-
cropped_image = Image.fromarray(cropped_image)
|
62 |
out = viet_ocr_predict(cropped_image)
|
63 |
|
64 |
texts = texts + '\t' + out
|
|
|
58 |
max_y = min(height-1, max_y)
|
59 |
# crop the region of interest (ROI)
|
60 |
cropped_image = inp[min_y:max_y,min_x:max_x] # crop the image
|
61 |
+
#cropped_image = Image.fromarray(cropped_image)
|
62 |
out = viet_ocr_predict(cropped_image)
|
63 |
|
64 |
texts = texts + '\t' + out
|