Live data from Hacker News

How we made our OCR code more accurate

pieces.app

21–30 of 50 posts

Re: How we made our OCR code more accurate

#22
post #12
post #6

Anything that mentions tesseract is about 10 years out of date at this point.

I just built a pipeline with tesseract last year. What's better that is open source and runnable locally? VLLM hallucination is a blocker for my use case.

If you are stuck with open source, then your options are limited.

Otherwise I'd say just use your operating system's OCR API. Both Windows and MacOS have excellent APIs for this.

Re: How we made our OCR code more accurate

#23
post #6

Anything that mentions tesseract is about 10 years out of date at this point.

Quite simply, you’re completely wrong. Modern tesseract versions include a modern LSTM AI. It can very affordably be deployed on CPU, yet its performance is competitive with much more expensive large GPU-based models. Especially if you handle a high volume of scans, chances are that tesseract will have the best bang per buck.

i remember that you could not train it your self in a font like you could in older versions, it that still the case?

Re: How we made our OCR code more accurate

#24
post #14
post #12

Earlier quoted context omitted.

I just built a pipeline with tesseract last year. What's better that is open source and runnable locally? VLLM hallucination is a blocker for my use case.

How is a hallucination worse than a Tesseract error?

Latter is more likely to get debugged.

Re: How we made our OCR code more accurate

#26
post #20
post #17

Tesseract OCR was created by digital (DEC) in 19_8_5 (yes, 40 not four YEARs ago). Now go back and read the article and ROFL with me.

The original tesseract OCR has no neural nets. It bare little resemblance to the modern version.

It's still 40.

Why not use Ollama-OCR?

Re: How we made our OCR code more accurate

#27
post #6

Anything that mentions tesseract is about 10 years out of date at this point.

Quite simply, you’re completely wrong. Modern tesseract versions include a modern LSTM AI. It can very affordably be deployed on CPU, yet its performance is competitive with much more expensive large GPU-based models. Especially if you handle a high volume of scans, chances are that tesseract will have the best bang per buck.

My company probably spent close to 6 figures overall creating Tesseract 5 custom models for various languages. Surya beats them all and is open source (and quite faster).

Re: How we made our OCR code more accurate

#28
post #4
post #3

Neat article, but I feel like I have no idea why they're doing this! Is transcribing code from images really such a big use case?

Maybe they want to compile the Apollo Guidance Computer source code... https://www.softwareheritage.org/wp-content/uploads/2019/07/...

If it's not a joke, I think it was already digitized: https://github.com/chrislgarry/Apollo-11

Re: How we made our OCR code more accurate

#30

I can't say I've ever wanted to transcribe code from an image. That seems super niche. Perhaps the specific idea is to harvest coding textbooks as training data for LLMs?

Eh, imagine poor documentation where people take screenshots of steps and don't write them out.

I can also imagine plenty of YouTube tutorials that type the code live... seems fairly useful

Post reply on HN