hantech commited on
Commit
197d458
Β·
1 Parent(s): cccb577

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def inference(filepath, lang):
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)
54
  new_bounds.append((bbox,text, out, prob))
 
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
+
52
  out = recognitor.predict(cropped_image)
53
  print(out)
54
  new_bounds.append((bbox,text, out, prob))