1.0.0 • Published 7 years ago

tesseract-node-bindings v1.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

Bindings from Node to Tesseract

Build Status [Coverage

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);
  });
});