From a666fbce88250fb8a0f6826e80fcbf60ea3a160b Mon Sep 17 00:00:00 2001 From: EdgeNeko Date: Sat, 30 Dec 2023 00:52:45 +0800 Subject: [PATCH] Revert Easypaddleocr changes for VMEM problem --- app/Services/ocr_services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)