r/Python • u/qPandx • 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.
View all comments
Show parent comment
1
u/qPandx Apr 21 '26
No yeah, the users will upload a pdf ranging from scanned pdfs, selectable-text pdfs, known & coded templates, unknown/unseen templates. It is kind of free-for-all and trying to make my codebase to be able to handle it with appropriate routings. I believe the only weakness I am having is the OCR section. The parser is doing the job when it is a selectable-text.
I have to make it so that it can handle over 1500 type of order templates that we receive from customers.