README
ocr-online
Scan image text via a url/link
Installation
Installation
npm
npm i ocr-online
github
git clone https://github.com/XDumpy/ocr-online
Usage
//Requirement Importer
const OCR_Online = require("ocr-online")
//Main
OCR_Online.scan("https://image.freepik.com/free-vector/fresh-3d-editable-text-effect-white-gradation-purple-style-effect_176417-1579.jpg", "engine1", function(callback){
console.log(callback)
})
API
scan(image_link, scan_type, callback)
To scan the image text via a link/url.
image_link
The URL/link of the image that will be scanned.
scan_type
The type of what scan will be performed to the image. Scan Types:
- engine1 - Default, Fast, Supports more language.
- engine2 - Same as engine1 but It's better to use it when the image text contains numbers & special characters.
callback
returns module callback.
License
MIT © XDumpy