Live data from Hacker News

Tesseract.js – A Javascript port of the Tesseract OCR engine

tesseract.projectnaptha.com

1–10 of 38 posts

Re: Tesseract.js – A Javascript port of the Tesseract OCR engine

#4
post #2

Congrats! Why would one create such a project with JS given all of the languages available to them?

Client-side web apps. With today's smartphones, it does make sense to not do everything solely on the server side.

Theretically, cross platform support would be another possibility. But one could argue native C code could be bundled as well, albeit with separate integration being needed. (Android and iOS do support such extensions).

Re: Tesseract.js – A Javascript port of the Tesseract OCR engine

#5
post #2

Congrats! Why would one create such a project with JS given all of the languages available to them?

It's mostly not JavaScript, since it uses the emscripten port of the Tesseract OCR Engine, and if you want to do things in the browser, JavaScript has to be involved.

Re: Tesseract.js – A Javascript port of the Tesseract OCR engine

#8

> Tesseract.js wraps an emscripten port of the Tesseract OCR Engine Calling this “pure JavaScript” seems misleading

Yes, it's kind of weird, since there's no benefit to claiming false things like "Tesseract.js is a pure Javascript port [...]". Say it's WASM, since people associate that with speed and newness (and heavyweight dependencies, but there's no hiding that).

Re: Tesseract.js – A Javascript port of the Tesseract OCR engine

#9
post #6

Nice stuff! I found an error in the chinese demo, with the example you provided (4th character wasn't the same). I know no OCR is perfect, but IMHO at least your own demo should be free of errors.

There's one in the English demo too: "hail!" -> "haill". They're both pretty bad images though. In practice I've found (command line) Tesseract very accurate on 300dpi scans of printed documents, with colour/greyscale, not binary.
Post reply on HN