text-from-image

1.1.1 • Public • Published

Text from Image

This package helps you extract text from images. This works using the tesseract ocr engine.

Installation

npm install --save text-from-image

Usage

This gives a promise which can be used further for various uses

const ReadText = require('text-from-image')

ReadText('./image.png').then(text => {
    console.log(text);
}).catch(err => {
    console.log(err);
})

Please take care

  • Image can be Buffer, PNG, JPG, etc.
  • The clear the image the better.
  • You can use Sharp or other image processing library to modify image before sending it to the function

Development /Issues

For any issues found please create a pull request

If you're interested in developing it please follow GitHub repo.

Package Sidebar

Install

npm i text-from-image

Weekly Downloads

575

Version

1.1.1

License

ISC

Unpacked Size

3.11 kB

Total Files

3

Last publish

Collaborators

  • abhishekgoyal1305