debu das commited on
Commit
1a57fc5
1 Parent(s): da55b09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -36,8 +36,11 @@ def cv_to_PIL(cv_img):
36
 
37
 
38
  async def pytess(cell_pil_img):
39
- return ' '.join(pytesseract.image_to_data(cell_pil_img, output_type=Output.DICT, config='-c tessedit_char_blacklist=œ˜â€œï¬â™Ã©œ¢!|”?«“¥ --psm 6 preserve_interword_spaces')['text']).strip()
40
-
 
 
 
41
 
42
  # def super_res(pil_img):
43
  # '''
 
36
 
37
 
38
  async def pytess(cell_pil_img):
39
+ 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()
40
+ print("pytess_output#####################################################")
41
+ print(pytess_output)
42
+ print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
43
+ return pytess_output
44
 
45
  # def super_res(pil_img):
46
  # '''