Skip to content
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

Failed to reconfigize simplified chinese text #65

Open
shrinktofit opened this issue Aug 12, 2022 · 2 comments
Open

Failed to reconfigize simplified chinese text #65

shrinktofit opened this issue Aug 12, 2022 · 2 comments

Comments

@shrinktofit
Copy link

shrinktofit commented Aug 12, 2022

The trained data used is fetched from: https://github.com/tesseract-ocr/tessdata/blob/main/chi_sim.traineddata

The image:

img

The error:

## <Seems like compiled emscripten wasm glue code>
... eturn (Module["dynCall_jii"]=Module["asm"]["ma"]).apply(null,arguments)};var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller;};function run(args){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun();}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("");},1);doRun();},1);}else {doRun();}}Module["run"]=run;if(Module["preInit"]){if(typeof Modu
    at abort (file:///X:/Temp/auto-bb/node_modules/tesseract-wasm/dist/lib.js:539:7465)
    at _abort (file:///X:/Temp/auto-bb/node_modules/tesseract-wasm/dist/lib.js:539:54327)
    at wasm://wasm/0067125a:wasm-function[50]:0x1b74 
    at wasm://wasm/0067125a:wasm-function[694]:0x5d8d2
    at wasm://wasm/0067125a:wasm-function[872]:0x8434f
    at wasm://wasm/0067125a:wasm-function[1733]:0x14bb88
    at wasm://wasm/0067125a:wasm-function[1953]:0x16e2fb
    at OCREngine$loadModel [as loadModel] (eval at new_ (file:///X:/Temp/auto-bb/node_modules/tesseract-wasm/dist/lib.js:539:36290), <anonymous>:9:10)
    at OCREngine.loadModel (file:///X:/Temp/auto-bb/node_modules/tesseract-wasm/dist/lib.js:629:37)
    at main (file:///X:/Temp/auto-bb/index.mjs:24:12)

I mainly referenced here for code: #22

@shrinktofit shrinktofit changed the title Failed to reconfigize chinese text Failed to reconfigize simplified chinese text Aug 12, 2022
@shrinktofit
Copy link
Author

I also tried https://github.com/tesseract-ocr/tessdata/blob/main/chi_sim_vert.traineddata . There was no error like above but the result is completely incorrect. But I guess this is due to the traned data itself.

@robertknight
Copy link
Owner

Is there any other output in the browser console near the error stack above? It looks like some internal assert is being tripped, in which case I'd expect to see a message about what caused the abort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants