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
I get this error whenever trying to run the script. I've cloned it locally and still face the same issue.
Error occurred:
ReferenceError: File is not defined
at Lens.scanByData (file:///C:/<username>/workspace/Node/chrome-lens-ocr/src/core.js:224:22)
at Lens.scanByBuffer (file:///C:/<username>/workspace/Node/chrome-lens-ocr/src/index.js:68:21)
at async cli (file:///C:/<username>/workspace/Node/chrome-lens-ocr/cli.js:67:16)
at async file:///C:/<username>/workspace/Node/chrome-lens-ocr/cli.js:92:9
I ran the following command from the root: node cli.js .\004_resized.jpg
File is not available in Node (it's for DOM) if I understand this correctly - and hence the error.
Suggestion:
Can you add an example folder in the repo which uses the local version of scripts and does the OCR? That way we can at least try to reproduce the running env by copying the exact script and node version and understand the problem with our setup.
Thanks for all the work!
The text was updated successfully, but these errors were encountered:
I get this error whenever trying to run the script. I've cloned it locally and still face the same issue.
I ran the following command from the root:
node cli.js .\004_resized.jpg
File is not available in Node (it's for DOM) if I understand this correctly - and hence the error.
Suggestion:
Can you add an
example
folder in the repo which uses the local version of scripts and does the OCR? That way we can at least try to reproduce the running env by copying the exact script and node version and understand the problem with our setup.Thanks for all the work!
The text was updated successfully, but these errors were encountered: