Hector Leon Zarco Garcia
8 years ago
2 changed files with 6 additions and 2 deletions
@ -1,6 +1,8 @@ |
|||||||
|
var path = require('path'); |
||||||
var Tesseract = require('../../') // replace this with require('tesseract.js')
|
var Tesseract = require('../../') // replace this with require('tesseract.js')
|
||||||
|
var image = path.resolve(__dirname, 'cosmic.png'); |
||||||
|
|
||||||
Tesseract.recognize('cosmic.png') |
Tesseract.recognize(image) |
||||||
.then(function(data){ |
.then(function(data){ |
||||||
console.log(data.text) |
console.log(data.text) |
||||||
}) |
}) |
Loading…
Reference in new issue