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

How to use multiple languages? #84

Open
samuel-leung-silvercube opened this issue Jun 26, 2023 · 3 comments
Open

How to use multiple languages? #84

samuel-leung-silvercube opened this issue Jun 26, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@samuel-leung-silvercube
Copy link

samuel-leung-silvercube commented Jun 26, 2023

I tried to load eng, chi_tra and chi_sim but only eng is recognized

await ocr.loadModel('./lib/eng.traineddata');
await ocr.loadModel('./lib/chi_tra.traineddata');
await ocr.loadModel('./lib/chi_sim.traineddata');
@robertknight robertknight added the enhancement New feature or request label Jun 26, 2023
@robertknight
Copy link
Owner

robertknight commented Jun 26, 2023

tesseract-wasm currently only supports a single language at a time. loadModel replaces whichever language was loaded previously. The underlying Tesseract engine has support for multiple languages in the same image, but this is not yet supported in this wrapper.

@robertknight robertknight added the help wanted Extra attention is needed label Jun 26, 2023
@LaurenBerrys
Copy link

can you add this function? and there's something else we need to update new tesseract

@robertknight
Copy link
Owner

can you add this function?

Are you referring to this comment:

The underlying Tesseract engine has support for multiple languages in the same image, but this is not yet supported in this wrapper.

?

and there's something else we need to update new tesseract

Please create a separate issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants