Update app.py
Browse files
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(['
|
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
|