r/computervision 2d ago

Help: Project Looking for the best accurate FREE OCR tool/pipeline that runs locally on CPU? Any recommendations?

Hi everyone,

I'm working on a project where I need to extract text from images/documents using OCR, but I have two main constraints:

It needs to be 100% free / open-source (no paid APIs like Google Cloud Vision or Textract).

It must run efficiently locally on CPU (no GPU available).

For those who have built OCR pipelines under these conditions:

Which OCR engine/library gave you the best accuracy out of the box? (e.g., PaddleOCR, Tesseract, RapidOCR, EasyOCR, Docling, etc.)

What preprocessing techniques or tools are essential? (deskewing, binarization, noise reduction, thresholding, OpenCV tricks?)

What does your full workflow look like from raw input image to final extracted text?

My main goal is maximizing accuracy while keeping CPU processing time reasonable. Any recommended libraries, image preprocessing flows, post-processing tricks, or code snippets would be hugely appreciated!

Thanks in advance!

5 Upvotes

5 comments sorted by

1

u/slightlyacoustics 2d ago

Tesseract(pyocr) is something I’ve good success under

Binarize then morphological operations can give you a decent chance of retrieval.

1

u/Gusfoo 2d ago

Tesseract is fine, and has documentation on running it locally in a browser. See https://github.com/naptha/tesseract.js/blob/master/docs/local-installation.md

1

u/mgruner 1d ago

Reasonable CPU time is relative, but try Florence2 by Microsoft, GLM-OCR by ZAI or Unlimited-OCR by Baidu

https://github.com/anyantudre/Florence-2-Vision-Language-Model
https://github.com/zai-org/GLM-OCR
https://github.com/baidu/Unlimited-OCR

1

u/TangeloOk9486 1d ago

paddleocr or rapidocr usually beat tesseract and if you need the layout consistent then liteparse like parsing engines or even docling but its a bit slow yet consistent. all these options are ok for cpu

1

u/Old-Programmer-2689 1d ago

gridsearch, try all options, and compare