Omnibus commited on
Commit
c690508
β€’
1 Parent(s): db6d5bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ def draw_boxes(image, bounds, color='blue', width=2):
15
 
16
  def detect(img, lang=['en']):
17
  reader = easyocr.Reader(lang)
18
- bounds = reader.readtext(img.name)
19
- im = PIL.Image.open(img.name)
20
  im_out=draw_boxes(im, bounds)
21
  return im_out
22
 
 
15
 
16
  def detect(img, lang=['en']):
17
  reader = easyocr.Reader(lang)
18
+ bounds = reader.readtext(img)
19
+ im = PIL.Image.open(img)
20
  im_out=draw_boxes(im, bounds)
21
  return im_out
22