ocr-by-image-url
v0.0.1
Published
Simple to use module to recognize texts in images by an image url
Downloads
16
Maintainers
Readme
node-ocr-by-image-url
Node module based on node-tesseract
to recognize texts in images by an image url.
Install
1) Install the native ocr engine
tesseract-ocr
can be found here: https://code.google.com/p/tesseract-ocr.
2) Install npm module
npm install ocr-by-image-url
Usage
var ocr = require('ocr-by-image-url');
ocr.getImageText('http://image.com/cat-poem.png', function(error, text){
console.log(text.trim());
});
// With proxy
var proxy = 'http://user:[email protected]:3128';
ocr.getImageText('http://image.com/cat.png', proxy, function(error, text){
console.log(text.trim);
});