This commit is contained in:
Dragon Fire
2021-03-15 17:11:37 -04:00
parent 7812715e86
commit 654ac0d474
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class OcrCommand extends Command {
await worker.initialize('eng');
let timedOut = false;
setTimeout(async () => {
timedOut = false;
timedOut = true;
await worker.terminate();
}, 30000);
const { data: { text } } = await worker.recognize(image);