Closed frank-pian closed 4 months ago
Language data files are cached by default. If Tesseract.js finds a valid language data file already exists in your local storage, it will not download a new one from a remote server. You can disable this behavior for development/testing purposes by setting cacheMethod: 'none'
, however should remove this setting before deploying your site publicly to avoid unnecessary network usage.
On an unrelated note, if you want your project to run on all devices, you should point corePath
to a directory containing all of the different .wasm.js
files from Tesseract.js-core. While tesseract-core-simd-lstm.wasm.js
is the fastest, so is used by default on supported devices, older iOS devices (for example) do not support it. When corePath
is set to a directory, the correct version will be picked automatically.
Setting cacheMethod: 'none' worked, thanks!
V5.0.3
Describe the bug I followed the official demo with a slight modification. But checking the network doesn't load the new traindata. I've tested multiple path loading methods and none of them work."file:///", "./", "https://localhost/" I just want to replace the current simple traindata with the best traindata.
To Reproduce Steps to reproduce the behavior:
index.html
https://github.com/naptha/tesseract.js/issues/101