A rewrite of text-from-image by goyalabhi1305 in TypeScript.
npm install --save node-text-from-image
This gives a promise which can be used further for various uses
import getTextFromImage from "node-text-from-image";
getTextFromImage("./image.png").then(text => {
console.log(text);
}).catch(err => {
console.log(err);
})
- Image can be any supported Image Format.
- The clear the image the better.
- You can use Sharp or other image processing library to modify image before sending it to the function
If you run into any problems, please create an issue.
If you're interested in contributing, please follow the GitHub repository.