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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def predict(filepath):
57
  max_y = max(tl[1], tr[1], br[1], bl[1])
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
 
 
57
  max_y = max(tl[1], tr[1], br[1], bl[1])
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