1.0.0 • Published 7 years ago
tesseract-node-bindings v1.0.0
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);
});
});
1.0.0
7 years ago