-
I have no idea how to disable logging / debug / console output like:
Anybody? |
Beta Was this translation helpful? Give feedback.
Answered by
Balearica
Aug 24, 2024
Replies: 1 comment
-
To capture debugging messages in the output object, rather than printing them to console, set the const worker = await await Tesseract.createWorker("eng");
const ret = await worker.recognize(files[i], undefined, {debug: true});
console.log(ret.data.text);
console.log(`Captured message: ${ret.data.debug}`);
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
archasek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To capture debugging messages in the output object, rather than printing them to console, set the
debug
totrue
within the output options.