Good people. I'm having this error:
AdaptedTemplates! = NULL: Error: Assert failed: in file ../classify/adaptmatch.cpp, line 190 index.js: 8 Uncaught abort () at Error at Na (https: // c dn. rawgit.com/naptha/tesseract.js-core/0.1.0/index.js:36:26) at Object.ka [as abort] (// c dn. rawgit.com/naptha/tesseract.js-core/0.1.0/index.js:511:108) at _abort (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 377: 173) at $ L (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 387: 55709) at jpa (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 392: 22274) at lT (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 391: 80568) at mT (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 391: 80700) at Array.bs (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 391: 69011) at bP (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 387: 110121) at jT (h ttps: //cdn.rawgit.com/naptha/tesseract.js-core/0.1.0/index.js: 391: 80280) If this abort () is unexpected, build with -s ASSERTIONS = 1 which can give more information.
I'm creating langPath and applying it as follows.
window.Tesseract = Tesseract.create({
langPath: '/app/modules/teste/tessdata/'
})
Tesseract.recognize(file, {
lang: 'Inconsolata',
tessedit_char_whitelist: '0123456789',
langPath : '/app/modules/teste/tessdata/'
})
.progress(function(packet){
console.info(packet)
console.log('é aqui? ^');
progressUpdate(packet)
})
.then(function(data){
console.log(data)
console.log('ou aqui aqui? ^')
progressUpdate({ status: 'done', data: data })
});
The folder is allowed. I do not know what can be wrong, anyone?