testmail-gmail commited on
Commit
81c81bb
·
1 Parent(s): b779888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def detect_Custom(img,model,boundedImage):
153
  images = [keras_ocr.tools.read(img) for img in [boundedImage]]
154
  prediction_groups = pipeline.recognize(images)
155
  plt.figure(figsize = (10,20))
156
-
157
  fig, ax = plt.subplots(figsize=(10, 20))
158
  keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
159
  if save_txt or save_img:
 
153
  images = [keras_ocr.tools.read(img) for img in [boundedImage]]
154
  prediction_groups = pipeline.recognize(images)
155
  plt.figure(figsize = (10,20))
156
+ plt.imshow(images[0])
157
  fig, ax = plt.subplots(figsize=(10, 20))
158
  keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
159
  if save_txt or save_img: