Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def ocrpdf(file_path,pdf_lang,page_num):
|
|
82 |
img1 = pdf_pil(file_path,page_num)
|
83 |
lang=[f"{ocr_id[pdf_lang]}"]
|
84 |
reader = easyocr.Reader(lang)
|
85 |
-
bounds = reader.readtext(img1,
|
86 |
|
87 |
this = ""
|
88 |
for bound in bounds:
|
|
|
82 |
img1 = pdf_pil(file_path,page_num)
|
83 |
lang=[f"{ocr_id[pdf_lang]}"]
|
84 |
reader = easyocr.Reader(lang)
|
85 |
+
bounds = reader.readtext(img1,width_ths=0.7)
|
86 |
|
87 |
this = ""
|
88 |
for bound in bounds:
|