Created
March 16, 2016 14:52
-
-
Save ivan3bx/dfd750068dd98579ea94 to your computer and use it in GitHub Desktop.
testing out node-tesseract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tesseract = require('node-tesseract'); | |
var options = { | |
l: 'eng', | |
psm: 1 | |
}; | |
tesseract.process('/home/tesseract/IMG_4918.jpg', options, function(err, text) { | |
if (err) { | |
console.error(err); | |
} else { | |
console.log(text); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment