Error #14782
-
Here is my code: from paddleocr import PaddleOCR, draw_ocr
ocr = PaddleOCR(lang="japan", det_db_unclip_ratio=2, det_algorithm="SAST", use_angle_cls=False) Error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The error message:
indicates that the Solution:Modify your code to use an appropriate value for ocr = PaddleOCR(lang="japan", det_db_unclip_ratio=2, det_algorithm="SAST", use_angle_cls=False) to: ocr = PaddleOCR(lang="japan", det_db_unclip_ratio=2, det_algorithm="DB", use_angle_cls=False) Explanation:
After making this change, your code should work correctly without the Let me know if you need further assistance! 🚀 Response generated by 🤖 feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
This applies to our Python inference scripts, not the Python API interface. See https://paddlepaddle.github.io/PaddleOCR/latest/en/infer_deploy/python_infer.html for more information