mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user