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

Tessdata on Homebrew #170

Open
KaiVinter opened this issue Mar 14, 2023 · 1 comment
Open

Tessdata on Homebrew #170

KaiVinter opened this issue Mar 14, 2023 · 1 comment
Labels

Comments

@KaiVinter
Copy link

KaiVinter commented Mar 14, 2023

Hello!
I'm working on a project that needs to use the legacy engine (and therefore the legacy language data), but I lack the knowledge to install tessdata instead of tessdata-fast without a Homebrew formula available.
Is there a way to add this tessdata as a Homebrew formula?

@stweil
Copy link
Contributor

stweil commented May 17, 2023

It is not necessary to install tessdata instead of tessdata-fast, because both can be installed at the same time, just in different directories to avoid name collisions. My Homebrew installation for example offers all kinds of models:

% ls -l /opt/homebrew/share/tessdata/tessdata*
lrwxr-xr-x  1 sw  admin  34 10 Jan 07:06 /opt/homebrew/share/tessdata/tessdata -> /usr/local/share/tessdata/tessdata
lrwxr-xr-x  1 sw  admin  39 10 Jan 07:06 /opt/homebrew/share/tessdata/tessdata_best -> /usr/local/share/tessdata/tessdata_best
lrwxr-xr-x  1 sw  admin  39 10 Jan 07:06 /opt/homebrew/share/tessdata/tessdata_fast -> /usr/local/share/tessdata/tessdata_fast

So I can run tesseract image.png - -l tessdata/eng --oem 0.

And of course it would be possible to add a Homebrew formula which installs all tessdata models to /opt/homebrew/share/tessdata/tessdata.

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

No branches or pull requests

2 participants