hoangkha1810 commited on
Commit
d1d1ce8
·
verified ·
1 Parent(s): 763cbc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def ocr_with_easy(img):
59
  gray_scale_image=get_grayscale(img)
60
  thresholding(gray_scale_image)
61
  cv2.imwrite('image.png',gray_scale_image)
62
- reader = easyocr.Reader(['th','vi'])
63
  bounds = reader.readtext('image.png',paragraph="False",detail = 0)
64
  bounds = ''.join(bounds)
65
  return bounds
 
59
  gray_scale_image=get_grayscale(img)
60
  thresholding(gray_scale_image)
61
  cv2.imwrite('image.png',gray_scale_image)
62
+ reader = easyocr.Reader(['vi'])
63
  bounds = reader.readtext('image.png',paragraph="False",detail = 0)
64
  bounds = ''.join(bounds)
65
  return bounds