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
Is your feature request related to a problem? Please describe.
I'm working on an Electron app. In Electron, each window has access to both the Node JS API and the web view API (e.g. the global window and window.document variables are defined).
Currently, tesseract.js checks if it's running in a browser and if so it treats all configuration paths as URLs - see here. I would like to force tesseract.js to work in "Node mode" and to treat the configuration paths as file paths.
Describe the solution you'd like
When initialising tesseract.js workers, add a new property to specify whether you're working in browser or Node js mode. This property can be optional - if it's not present then use the current logic.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm working on an Electron app. In Electron, each window has access to both the Node JS API and the web view API (e.g. the global
window
andwindow.document
variables are defined).Currently,
tesseract.js
checks if it's running in a browser and if so it treats all configuration paths as URLs - see here. I would like to forcetesseract.js
to work in "Node mode" and to treat the configuration paths as file paths.Describe the solution you'd like
When initialising
tesseract.js
workers, add a new property to specify whether you're working in browser or Node js mode. This property can be optional - if it's not present then use the current logic.The text was updated successfully, but these errors were encountered: