Skip to content
Discussion options

You must be logged in to vote

Hello, if you don’t want to use the document orientation classification and document unwarping models, you can turn them off by setting use_doc_orientation_classify=False, use_doc_unwarping=False, and use_textline_orientation=False.

from paddleocr import PaddleOCR

ocr = PaddleOCR(
    use_doc_orientation_classify=False,
    use_doc_unwarping=False, 
    use_textline_orientation=False, 
)
result = ocr.predict("./general_ocr_002.png")
for res in result:
    res.print()
    res.save_to_img("output")
    res.save_to_json("output")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gustavoribeiro88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants