Socket
Socket
Sign inDemoInstall

text-from-image

Package Overview
Dependencies
35
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    text-from-image

This helps to extract text from images, very easily using tesseract engine


Version published
Weekly downloads
642
decreased by-13.13%
Maintainers
1
Install size
18.5 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 11 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc