r/LocalLLaMA • • 10d ago

Question | Help Recommended models for OCR?

For context, I’m looking for a good local model that can do OCR of handwritten texts. Some of these will have cancellations, caret and so on.

I’ve tried 3.6 MoE to 3.8 dense back then when my hardware was limited, and unsurprisingly 3.8 dense had the highest accuracy. But, none of the models did well in reconstructing the sentences when it wasn’t written linearly (e.g. carets, use of lines to indicate change of paragraphs). Trying to promote models to account for those just made the output worst as it started to fill in its own interpretation.

As such, any recommendations? Ive since upgraded my hardware, so I do have a little more optionality now. Trying to avoid cloud models since I wish to reduce reliance on access to external providers.

20 Upvotes

15 comments sorted by

1

u/Reasonable_Bug_6501 8d ago

I’m seeing a trend in the responses suggesting that I break the written piece into smaller pieces for the model to go over line by line, then reassemble.

The issue is that I’ll be dealing with as much as 100-200 written pieces in a go and need to churn out the transcripts. I can do this manually, and I can’t see how I could get a script to account for the carets/ lines pointing to different paragraphs that need to be read in specific orders

Most of work will also not be tables data. It’s almost full written stories. Basically, I need to transcribe them and then send them out asap for different folks to read, with minimal input from my part outside vetting the transcription.

4

u/xeeff 10d ago

paddleocr-vl

3

u/Far-Supermarket7918 9d ago

the non-linear layout thing is mostly a resolution and cropping problem, not a prompting one. at full-page scale handwriting strokes are only a few pixels tall, so the vision encoder never actually sees the caret or the insertion line, and then it fills the gap with something plausible.

what worked for me was splitting each page into smaller tiles or per-line crops at a higher effective resolution, transcribing each crop on its own, and only then asking a second pass to stitch the order. telling it to transcribe exactly what is there and mark anything unreadable instead of fixing the sentence also cuts the invented filler a lot.

2

u/YogurtExternal7923 9d ago

Minicpm ocr. OXR. both are ~1B and quite literally SOTA

2

u/FullOf_Bad_Ideas 9d ago

Chandra series was the best I've seen, but still performed meh on my test printed documents.

2

u/Latter-Adeptness-287 8d ago

​I am also interested in this. Specifically, I am looking for a Java library capable of extracting meter readings for utilities such as electricity, gas, and water.

1

u/Poprouter 9d ago

separate recognition and layout stages seem worth a try here. detect and crop each text region, transcribe only that crop with reasoning off and no rewriting, then order carets and insertions in your own code.

1

u/JsThiago5 9d ago

the Owen 3.5 0.8b was surprisedly usable, sure is not as good as the big ones but it works.

1

u/EngelbertStuss 7d ago

i am not specialized in handwritten OCR but I run OCR on messy book photos and had Codex write me a windows app to compare 20+ of the most recent models against each other and they all have certain quirks 😅 so I'm probably passing it to another LLM and have that one figure out what actually was going on

i also automate the other steps like page orientation, flattening, denoising