Live data from Hacker News

Ask HN: Open source OCR library?

news.ycombinator.com

21–30 of 104 posts

Re: Ask HN: Open source OCR library?

#25

Tesseract is ok, but I gather that a lot of the good work in the last few years on it has remained closed source within Google. If you want to do text extraction, look at things like Stroke Width Transform to extract regions of text before passing them to Tesseract.

Does Google provide any "OCR as a service" API that takes advantage of their closed-source advances? I know something OCR-ish happens when you upload an image-PDF to Google Docs, but I don't remember if there's any way to get the resulting text out.

Re: Ask HN: Open source OCR library?

#27
post #2

https://code.google.com/p/tesseract-ocr/ is pretty good

Tesseract does no layout analysis. So if the source image contains text columns or pull quotes or similar, the output text will just be each row of text, from the far left to the far right.

Take a look at https://github.com/tmbdev/ocropy for layout analysis (at one point this project was called OCRopus).

Re: Ask HN: Open source OCR library?

#28
I tried using Tesseract and could not get it to work reliably. I tried a bunch of different pre-processing techniques and it turned into a very frustrating experience.

When I compared Tesseract to Abbyy, the difference was night and day. Abbyy straight out of the box got me 80%-90% accuracy of my text. Tesseract got around 75% at best with several layers deep of image pre-processing.

I know you said open source, and just wanted to say, I went down that path too and discovered in my case, proprietary software really was worth the price.

Re: Ask HN: Open source OCR library?

#29
post #28

I tried using Tesseract and could not get it to work reliably. I tried a bunch of different pre-processing techniques and it turned into a very frustrating experience. When I compared Tesseract to Abbyy, the difference was night and day. Abbyy straight out of the box got me 80%-90% accuracy of my text. Tesseract got around 75% at best with several layers deep of image pre-processing. I know you said open source, and…

Exact same experience here. Omnipage also produced excellent results.

Re: Ask HN: Open source OCR library?

#30
Judging by the comments there is much space for improvement on open source OCR libraries, maybe someone with experience in the field should start a kickstarter for it, there must some here in HN itself; maybe something with CLI and GUI and layout recognition.
Post reply on HN