node-tesseract
Tesseract OCR bindings for Node.js.
I started developing of this module when had a need to have Tesseract working with Node.js. But found that
existing modules do call tesseract
command-line tool. And I have a need in fully customizable API. I started
from this article and now working with Tesseract 3.02 API
documentation. So soon will have much more things implemented! :wink:
Example
var tesseract = require("tesseract")
, tess = new tesseract.BaseApi()
, pix;
tess.init("eng");
tess.setImage("some-image.png");
tess.recognize();
console.log(tess.getText());
tess.clear();
pix = new tesseract.Pix("other-image.png");
tess.setImage(pix);
tess.recognize();
console.log(tess.getText());
tess.end();
TODO
- Make class BaseApi support more of TessBaseAPI
- Make tests
- Changelog
- Support of other Tesseract APIs (someday)!