We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With this simple vue file taken from: https://raw.githubusercontent.com/jeromewu/tesseract.js-electron/master/index.html :
<template> <div> </div> </template> <script> // https://github.com/jeromewu/tesseract.js-electron/blob/master/index.html import { createWorker } from 'tesseract.js'; import path from 'path'; let __dirname = ""; export default { mounted () { const worker = createWorker({ cachePath: path.join(__dirname, "lang-data"), logger: m => console.log(m), }); (async () => { // await worker.load(); await worker.loadLanguage('eng'); //await worker.initialize('eng'); //const { data: { text } } = await worker.recognize(path.join(__dirname, 'images', 'testocr.png')); //console.log(text); //await worker.terminate(); })(); } } </script>
I get this error: "Uncaught Error: TypeError: Cannot read property 'arrayBuffer' of undefined createWorker.js:173 at Worker.worker.onMessage"
How to solve the problem?
Marco
The text was updated successfully, but these errors were encountered:
version 2.0.0 is ok
Sorry, something went wrong.
@ColorfulHorse Thank you! Yes. With version 2.0.0. is ok. So it means that the vuersion 2.0.1 has a bug
Please check v2.1.4 for the fix of this issue. 😄
No branches or pull requests
With this simple vue file taken from: https://raw.githubusercontent.com/jeromewu/tesseract.js-electron/master/index.html :
I get this error:
"Uncaught Error: TypeError: Cannot read property 'arrayBuffer' of undefined createWorker.js:173 at Worker.worker.onMessage"
How to solve the problem?
Marco
The text was updated successfully, but these errors were encountered: