hantech commited on
Commit
e993931
·
verified ·
1 Parent(s): cb848ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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