by recuter · 4y ago · 0 comments
https://github.com/tesseract-ocr/tessdata
https://en.wikipedia.org/wiki/Tesseract_(software)
The demo of course works perfectly on a Mac as this is already built into Ventura.
If you haven't experienced it yet ye olde ctrl-f now seamlessly sneaks a peak into images on the page for example, surprisingly useful.
In November 2020, Brewster Kahle from the Internet Archive praised Tesseract saying:
Tesseract has made a major step forward in the last few years. When we last evaluated the accuracy it was not as good as the proprietary OCR, but that has changed– we have done evaluations and it is just as good, and can get better for our application because of its new architecture.
Anybody have an up to date breakdown of available OCR solutions?It's command line driven but can display the detected text as an overlay of the document.
Source: I work in developing a competing OCR service and we keep an eye on competition (e.g. aside from Google, solutions by Azure, Amazon, Abbyy, Nuance, Cloudmersive, etc., as well as our internal product of course, which is not available externally), and they are (almost) all significantly better on Tesseract.
The only domain where Tesseract is competitive is for perfect "black text on white paper", it gives pretty poor performance when dealing with colored, distorted text, or even strong page structure effects (tables, etc.).
When I say "pretty poor" I mean: "with respect to the state-of-the-art", of course it's still enormously better than what was the state-of-the-art before deep learning came into the picture, roughly a decade ago. And for things like "search contents of a book" it's basically perfect already.
Great. How do you quantify it and keep track? Is there an industry standard benchmark?
Would you consider sharing a backblaze type analysis (they track consumer HD performance and blogging about it got them a lot of attention and customers)?
It certainly beats Abbyy from 10 years ago - maybe a low bar to clear.
I had to spend some time setting up labeling then did some supplemental training on UB-Mannheim datasets.
Tesseract is the only OCR FOSS solution that has reasonable performance.
I wouldn't be surprised if their data set is bigger than the stock tesseract, but part of the OCR process is to preprocess the images.
Back in the days, Cuneiform got close to Tesseract's performance, but AFAIK it wasn't developed further...
Does anyone else know other promising open-source OCR engines?
Among many other things, it offes OCR of any region on the screen
for larger-scale OCR processing of pdfs and other files, I love how s3-ocr https://simonwillison.net/2022/Jun/30/s3-ocr/ makes working with AWS Textract OCR more accessible (though, somehow, Textract refuses to fully OCR larger pdfs I possess..)
Try Command+Shift+4, grab part of the screen, click the pop-up, and just select text.
It does quite some preprocessing on the PDF pages before passing it on to tesseract.
Google's was by far the best, especially for obscured or malformed characters. Azure was second and I ended up merging the results from both.
For my use case (in Spring 2019) Tesseract was not very accurate and struggled with slanted text especially. Hopefully that has changed.