debu das commited on
Commit
f652a8c
1 Parent(s): 5ca3204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -48,6 +48,7 @@ async def pytess(cell_pil_img):
48
  paddle_output=' '
49
  cell_cv_img=PIL_to_cv(cell_pil_img)
50
  height, width, channels = cell_cv_img.shape
 
51
  if height>=10 and width>=10:
52
  ocr = PaddleOCR(use_angle_cls=True,use_space_char=True) # need to run only once to download and load model into memory
53
  result = ocr.ocr(cell_cv_img,cls=True)
 
48
  paddle_output=' '
49
  cell_cv_img=PIL_to_cv(cell_pil_img)
50
  height, width, channels = cell_cv_img.shape
51
+ st.text('height:'+str(height)+'/n'+'width:'+str(width))
52
  if height>=10 and width>=10:
53
  ocr = PaddleOCR(use_angle_cls=True,use_space_char=True) # need to run only once to download and load model into memory
54
  result = ocr.ocr(cell_cv_img,cls=True)