tesseract-node-bindings
v1.0.0
Published
Tesseract Bindings For Node
Downloads
6
Readme
Bindings from Node to Tesseract
Leptonica Pix Interface
Loading in an image is possible via the readImage
function:
conyyst tesseract = require('tesseract-node-bindings');
tesseract.readImage('./helloWorld.tiff', (err, img) => {
console.log(err, img);
});
Base API
To run tesseract, you'll need to create an instance of the baseApi,
const tesseract = require('tesseract-node-bindings');
console.log(`Tesseract Version: ${api.version}`);
tesseract.readImage('./helloWorld.tiff', (err, img) => {
tesseract.ocr(img, (err, text) => {
console.log(text);
});
});