diff --git a/app/Services/ocr_services.py b/app/Services/ocr_services.py index 6a4fb4c..0012505 100644 --- a/app/Services/ocr_services.py +++ b/app/Services/ocr_services.py @@ -41,7 +41,7 @@ def _easy_paddleocr_process(self, img: Image.Image) -> str: return "".join(itm[0] for itm in ocr_result if float(itm[1]) > config.ocr_search.ocr_min_confidence) return "" - def ocr_interface(self, img: Image.Image, need_preprocess=False) -> str: + def ocr_interface(self, img: Image.Image, need_preprocess=True) -> str: start_time = time() logger.info("Processing text with EasyPaddleOCR...") res = self._easy_paddleocr_process(self._image_preprocess(img) if need_preprocess else img)