Live data from Hacker News

Ask HN: Open source OCR library?

news.ycombinator.com

1–10 of 104 posts

Ask HN: Open source OCR library?

#1
Does anyone have a recommendation for a good character recognition library? I'm trying to pull text out of images. I tried ocrad.js but haven't had much success with it.

Re: Ask HN: Open source OCR library?

#7
post #2

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

Tesseract is quite good and can get some really good results if you can train it. I just wish there was a more UI friendly way for generating the training file; for the project where I had to use it I ended up paying a freelancer with some strong knowledge of Tesseract training. Really happy with the results for my iOS app (universal app)

Re: Ask HN: Open source OCR library?

#8
I've used tesseract to great affect. I don't know how your images are but if only part of the image has text in it, you should only send that part to the OCR engine. If you send the entire image and only a portion of it has text in it, chances of the OCR extracting text are slim. There are pre-processing techniques [1] you can use to crop out the part of the image that has text

[1]: https://en.wikipedia.org/?title=Hough_transform

Re: Ask HN: Open source OCR library?

#9

I used Tesseract and OpenCV to process Words With Friends tiles.

I think this is the best solution, though a bit daunting without experience in either to approach. But you'll get access to processing all of your information in a low level language very quickly.

Re: Ask HN: Open source OCR library?

#10

I've used tesseract to great affect. I don't know how your images are but if only part of the image has text in it, you should only send that part to the OCR engine. If you send the entire image and only a portion of it has text in it, chances of the OCR extracting text are slim. There are pre-processing techniques [1] you can use to crop out the part of the image that has text [1]: https://en.wikipedia.org/?title=Ho…

[deleted]
Post reply on HN