DenoDDeno
Powered by
rabbit_rabbitR
Denoβ€’12mo agoβ€’
2 replies
rabbit_rabbit

Importing Tesseract.js

Hello! I am hoping to use tesseract.js to do OCR in my application. However on deno 2.2.6, when I try

Tesseract.recognize(
      'https://tesseract.projectnaptha.com/img/eng_bw.png',
      'eng',
    )
Tesseract.recognize(
      'https://tesseract.projectnaptha.com/img/eng_bw.png',
      'eng',
    )


I get
error: unexpected argument '--debug-port' found

  tip: to pass '--debug-port' as a value, use '-- --debug-port'
error: unexpected argument '--debug-port' found

  tip: to pass '--debug-port' as a value, use '-- --debug-port'


Below is a minimal repro of the issue. Any help is appreciated, thank you!

https://github.com/will-weiss/deno-tesseract-repro
GitHub
GitHub - will-weiss/deno-tesseract-repro
Contribute to will-weiss/deno-tesseract-repro development by creating an account on GitHub.
GitHub - will-weiss/deno-tesseract-repro
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Importing local Node.js modules
abiAabi / help
3y ago
Importing pdfjs?
patwasalinguistPpatwasalinguist / help
13mo ago
Importing submodules
monkeymom2Mmonkeymom2 / help
3y ago