You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
450 B
23 lines
450 B
9 years ago
|
var Tesseract = require('./src/index.js')
|
||
|
global.Tesseract = Tesseract;
|
||
|
|
||
|
// Tesseract.recognize('yolop.png', {
|
||
|
// lang: 'eng'
|
||
|
// }).progress(function(info){
|
||
|
// console.log('--', info)
|
||
|
// })
|
||
|
// .then(function(data){
|
||
|
// console.log('--', data)
|
||
|
// })
|
||
|
|
||
|
|
||
|
// Tesseract.recognize('cosmic.jpg', {
|
||
|
// lang: 'eng'
|
||
|
// })
|
||
|
Tesseract.detect('cosmic.jpg')
|
||
|
.progress(function(info){
|
||
|
console.log(info)
|
||
|
})
|
||
|
.then(function(data){
|
||
|
console.log('done', data)
|
||
|
})
|