Update app.py
Browse files
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
|