Skip to content

Commit

Permalink
Revert Easypaddleocr changes for VMEM problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 29, 2023
1 parent 9db6816 commit a666fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/ocr_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a666fbc

Please sign in to comment.