atatavana commited on
Commit
3cc9394
·
1 Parent(s): d8aa7b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -81,6 +81,8 @@ def completepreprocess(pdffile, ocr_type):
81
  words, boxes, scores, output_img = process_image_PaddleOCR(image, width, height)
82
  elif ocr_type == "Pytesseract":
83
  words, boxes, scores, output_img = process_image_pytesseract(image, width, height)
 
 
84
 
85
  dataframe = createDataframe(boxes, words, scores)
86
  return output_img, dataframe
 
81
  words, boxes, scores, output_img = process_image_PaddleOCR(image, width, height)
82
  elif ocr_type == "Pytesseract":
83
  words, boxes, scores, output_img = process_image_pytesseract(image, width, height)
84
+ else:
85
+ words, boxes, scores, output_img = process_image_PaddleOCR(image, width, height)
86
 
87
  dataframe = createDataframe(boxes, words, scores)
88
  return output_img, dataframe