Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,7 @@ def viet_ocr_predict(inp):
|
|
33 |
def predict(filepath):
|
34 |
bounds = reader.readtext(filepath)
|
35 |
inp = Image.open(filepath)
|
|
|
36 |
texts=''
|
37 |
for (bbox, text, prob) in bounds:
|
38 |
(tl, tr, br, bl) = bbox
|
|
|
33 |
def predict(filepath):
|
34 |
bounds = reader.readtext(filepath)
|
35 |
inp = Image.open(filepath)
|
36 |
+
width, height = inpinp.size
|
37 |
texts=''
|
38 |
for (bbox, text, prob) in bounds:
|
39 |
(tl, tr, br, bl) = bbox
|