New issue
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
Add SIMD detection when corePath is specified #735
Comments
Unfortunately, I don't think we can change the current behavior for users who already specify a custom
This means users who are already setting |
The SIMD-enabled build of tesseract-core.js (
tesseract-core-simd.wasm.js
) has significantly faster recognition speeds (for Tesseract LSTM, the default model) compared to the build without SIMD support (tesseract-core.wasm.js
), although it is not compatible with all browsers and devices. When the user does not specifycorePath
we automatically detect which version is appropriate. However, whencorePath
is specified we just use whatever file the user provides, trusting them to pick the correct file. I do not believe many users understand this distinction, and most users are probably just using a single build for all users. We should edit such that Tesseract.js can detect and load the correct version, even if the user wants to self-host Tesseract.js-core or use a different CDN.tesseract.js/src/worker-script/browser/getCore.js
Lines 10 to 18 in 6b22a00
The text was updated successfully, but these errors were encountered: