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

Arbitrary place for storing tessdata? #1319

Open
umireon opened this issue Mar 6, 2025 · 0 comments
Open

Arbitrary place for storing tessdata? #1319

umireon opened this issue Mar 6, 2025 · 0 comments

Comments

@umireon
Copy link
Contributor

umireon commented Mar 6, 2025

Background

I want to provide this plugin with my tessdata directory path for text recognition in a language other than English.

The current implementation uses the plugin's module directory, and I have to place jpn.traineddata under the ocr directory for Japanese recognition.
However, the custom tessdata models will be wiped each time I update avdss on Mac because it is inside the plugin bundle.

Solution

I hope to clone tessdata somewhere in the user directory and instruct the plugin to refer to the cloned directory.

I can make a PR to implement this if it is OK.

Alternatives

The first time the plugin starts, it automatically clones test data from GitHub and places the plugin's config directory, but this would be considered excessive as a startup process.

Anything else we should know?

No response

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

1 participant