Live data from Hacker News

Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

github.com

11–20 of 62 posts

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#11
post #5

Can I do OCR all-in-browser with this, without involving any backend? Not much familiar with OCR accuracy metrics, how much accurate is Tesseract?

I cannot give you numbers - it would be nice to have a benchmark -, but I can tell you results are quite satisfactory, and if compared to some OCR results you find around from mainstream commercial products, it can be much better than them if you pre-process the input.

It may miss a few features (some which I needed I had to code in).

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#13
Tesseract is the most ideal OCRA SDK for reading simple bw documents. If you aim to read “text In the wild” or scene text then Firebase offers a much better alternative. I had a lot of hope for Tesseract 4.0 which is supposed to be based on NNs but it’s so far performed just marginally better than 3.0

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#14

Tesseract is the most ideal OCRA SDK for reading simple bw documents. If you aim to read “text In the wild” or scene text then Firebase offers a much better alternative. I had a lot of hope for Tesseract 4.0 which is supposed to be based on NNs but it’s so far performed just marginally better than 3.0

For “text In the wild” or scene text, the last time I checked, EasyOCR and PaddleOCR were both good.

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#16

Tesseract is the most ideal OCRA SDK for reading simple bw documents. If you aim to read “text In the wild” or scene text then Firebase offers a much better alternative. I had a lot of hope for Tesseract 4.0 which is supposed to be based on NNs but it’s so far performed just marginally better than 3.0

And what are you supposed to use if you're not doing it on android and can therefore use firebase?

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#17
post #2

This is a wrapper around a c++ codebase compiled with emscripten, so "pure" in the title doesn't really make sense.

> so "pure" in the title doesn't really make sense.

I can see where you're coming from, but I've never used or heard anyone in the web world use "pure" to mean only "written entirely in Javascript without transpilation or other tools."

If it hits the parts of "pure JS" that most people care about:

- it's running entirely in Javascript.

- it has no native dependencies.

- it can run entirely clientside.

- it can be embedded in a normal web page.

then I think most people will be fine with using "pure" to describe it.

----

I wouldn't even have that many quibbles with their phrasing even if they were compiling to WASM. Sure, at that point it wouldn't be running as pure javascript, but it would still hit 3 of the 4 points above.

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#18
post #15

any idea how the performance compares to native code from the original tesseract?

Much much worse, unfortunately. Though no fault of the maintainer.

I use it in an Electron project and a documents that takes about 1.5 sec per page with the Tesseract CLI, I can get down to about 15 sec with Tesseract.js with parallelization.

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#19

Tesseract is the most ideal OCRA SDK for reading simple bw documents. If you aim to read “text In the wild” or scene text then Firebase offers a much better alternative. I had a lot of hope for Tesseract 4.0 which is supposed to be based on NNs but it’s so far performed just marginally better than 3.0

For “text In the wild” or scene text, the last time I checked, EasyOCR and PaddleOCR were both good.

Just IMHO Apple's Vision framework has been great too, and very easy to get started

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#20

Tesseract is the most ideal OCRA SDK for reading simple bw documents. If you aim to read “text In the wild” or scene text then Firebase offers a much better alternative. I had a lot of hope for Tesseract 4.0 which is supposed to be based on NNs but it’s so far performed just marginally better than 3.0

This was my experience too... I tried to us tessaract for mobile app that scanned food labels in realtime using the camera video feed, I found that google's ML library text recognition was much faster, and reliable.
Post reply on HN