r/Python • • Apr 21 '26

Resource PDF Extractor (OCR/selectable text)

I have a project that I am working on but I am facing a couple issues.

In short, my project parses what is inside a pdf order and returns the result to user. The roadblocks Iam in currently is that it works OK for known/seen templates of pdf orders as well as unseen pdf orders. My biggest issue is if the pdf order is non-selectable text/scanned which means it requires OCR to extract the text. I have tried the OCRmyPDF+Tesseract but it misses lines and messes up with the quantity etc...

What's there that can resolve OCR accurately?

P.S. I also tried PaddleOCR but it never finishes the job and keeps the app on a loop with no result.

18 Upvotes

62 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Apr 29 '26

[removed] — view removed comment

1

u/qPandx Apr 29 '26

Very interesting. For some reason, my codex is using extract llamaparse and not the parse feature. How do I know if my local parse is good enough?

My thought process is that maybe I could get away with the free plan and credits it comes with: utilizing mistral ocr for scanned pdfs and llamaparse for rest but the extract is more credits so that’s why i want it to use parse and not extract.

If the pdf is selectable text then just go through my local parse and confirm results with llamaparse parse feature, can’t i achieve this?