Spaces:
Build error
Build error
debu das
commited on
Commit
•
4409a49
1
Parent(s):
6135263
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,11 @@ def cv_to_PIL(cv_img):
|
|
37 |
|
38 |
|
39 |
async def pytess(cell_pil_img):
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
42 |
|
43 |
# def super_res(pil_img):
|
44 |
# '''
|
|
|
37 |
|
38 |
|
39 |
async def pytess(cell_pil_img):
|
40 |
+
pytess_output=' '.join(pytesseract.image_to_data(cell_pil_img, output_type=Output.DICT, config='-c tessedit_char_blacklist=œ˜â€œï¬â™Ã©œ¢!|”?«“¥ --psm 6 preserve_interword_spaces')['text']).strip()
|
41 |
+
print("pytess_output######################################")
|
42 |
+
print(pytess_output)
|
43 |
+
print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
|
44 |
+
return pytess_output
|
45 |
|
46 |
# def super_res(pil_img):
|
47 |
# '''
|