You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was just trying to get the whitelist option setup with the scheduler. I already read the issues regarding the whitelist problem in Tesseract 4.0, but it should be fixed in version 4.1 and upwards. So my question is, how do I get the whitelist working again with the scheduler. Thanks in advance.
My current approach looks like this:
`
//worker and scheduler setup called on start
(async () => {
try {
var basePath = path.join(__dirname,'../');
for (i = 0; i < 4; i++) {
var worker = createWorker({ langPath: basePath});
await worker.load();
await worker.loadLanguage('deu');
await worker.initialize('deu');
scheduler.addWorker(worker);
}
}
catch (err) {
console.log(err);
}
})();
//actual tesseract request called on file upload request
//in reality I have a switch here to set different whitelists based on the incoming file
let options = { tessedit_char_whitlist: '0123456789' };
(async () => {
try {
const { data: { text } } = await scheduler.addJob('recognize', filePath, options);
console.log(text);
textRes = text;
res.send(textRes);
}
catch (ew1) {
throw ew1;
}
})();
`
The text was updated successfully, but these errors were encountered:
Hello,
I was just trying to get the whitelist option setup with the scheduler. I already read the issues regarding the whitelist problem in Tesseract 4.0, but it should be fixed in version 4.1 and upwards. So my question is, how do I get the whitelist working again with the scheduler. Thanks in advance.
My current approach looks like this:
`
`
The text was updated successfully, but these errors were encountered: