debu das commited on
Commit
def8c70
1 Parent(s): f0d4d4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ async def pytess(cell_pil_img):
47
  ###paddleocr
48
  paddle_output=' '
49
  cell_cv_img=PIL_to_cv(cell_pil_img)
50
- ocr = PaddleOCR(use_angle_cls=True,use_space_char=True,lang="ch") # need to run only once to download and load model into memory
51
  result = ocr.ocr(cell_cv_img,cls=True)
52
  for idx in range(len(result)):
53
  res = result[idx]
@@ -59,7 +59,7 @@ async def pytess(cell_pil_img):
59
  print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
60
  print(paddle_output)
61
  print("paddleocr$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
62
- return paddle_output
63
 
64
  # def super_res(pil_img):
65
  # '''
 
47
  ###paddleocr
48
  paddle_output=' '
49
  cell_cv_img=PIL_to_cv(cell_pil_img)
50
+ ocr = PaddleOCR(use_angle_cls=True,use_space_char=True) # need to run only once to download and load model into memory
51
  result = ocr.ocr(cell_cv_img,cls=True)
52
  for idx in range(len(result)):
53
  res = result[idx]
 
59
  print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
60
  print(paddle_output)
61
  print("paddleocr$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
62
+ return str(paddle_output)
63
 
64
  # def super_res(pil_img):
65
  # '''