Lurker News

Comments (97) 35 threads

Earlier comments
KiwiCoder2 replies#
Impressive that this is pure JS, however trying an image cut from the page itself gave this result

> Dropan Enghsh Wage on (Ms page to OCR m
Should be
> Drop an English image on this page to OCR it!

bijection#
As another commenter mentioned, Tesseract.js won't perform very well on 'natural' images (e.g. the very light text you tried).

It should work better if you feed it a screenshot of the black text at the top of the demo page though (Tesseract.js is a pure Javascript port etc...).

lloeki#
> Impressive that this is pure JS

Well it's pure JS in that it's been running the C tesseract through emscripten. So in a way it's pure JS just as much as the original lib is pure assembly when compiled ;-)

daliwali#
The title and description are very misleading: this is technically "pure JavaScript" but the JS is compiled from the original C++ library of the same name using emscripten. I think "pure JS" would imply that all of its sources are written in JS which is not the case here. It's mostly the C++ code doing the actual work, with a little JS wrapper on top.

Load more comments