hantech commited on
Commit
cccb577
Β·
1 Parent(s): 2f762de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def inference(filepath, lang):
47
  max_y = max(tl[1], tr[1], br[1], bl[1])
48
  # crop the region of interest (ROI)
49
 
50
- cropped_image = img[(min_x:(max_x - min_x), min_y:(max_y - min_y)] # crop the image
51
  cropped_image = Image.fromarray(cropped_image)
52
  out = recognitor.predict(cropped_image)
53
  print(out)
 
47
  max_y = max(tl[1], tr[1], br[1], bl[1])
48
  # crop the region of interest (ROI)
49
 
50
+ cropped_image = img[min_x:(max_x - min_x), min_y:(max_y - min_y)] # crop the image
51
  cropped_image = Image.fromarray(cropped_image)
52
  out = recognitor.predict(cropped_image)
53
  print(out)