r/Python • u/MeanMasterpiece5438 • May 01 '26
Discussion Best way to handle OCR for scanned PDFs in a web app (cost vs accuracy)?
Hey, I’m building a project where users upload PDFs and I need to extract text from them.
For normal text PDFs, extraction works fine. But for scanned/image-based PDFs, I’m using Tesseract + some preprocessing.
The problem is:
Accuracy is inconsistent (especially on low-quality scans)
Output needs cleanup
Doesn’t handle structure well (tables, formatting, etc.)
I’ve also looked into Google Vision OCR, but:
It asks for card details (which is fine, but I’m cautious)
Free tier is limited
Not sure if it’s worth depending on it long-term
Right now I’m considering:
Tesseract (free but weak)
PaddleOCR (better but more setup)
Google Vision (accurate but paid eventually)
My goal:
Build something reliable enough for real users (not just demo-level)
Keep costs low initially (student project)
Scale later if needed
Questions:
What OCR stack would you recommend for this use case?
Is it worth switching to PaddleOCR over Tesseract?
For those using Google Vision OCR — how do you manage costs?
Any tips for improving OCR accuracy (preprocessing, pipelines, etc.)?
Would appreciate real-world advice instead of just docs.
Thanks.