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

Allow passing configs/variables on initialization #349

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

sirfz
Copy link
Owner

@sirfz sirfz commented Apr 20, 2024

This PR exposes the full tesseract API initialization parameters in the PyTessBaseAPI constructor:

api = PyTessBaseAPI(configs=["/path/to/my.config"], variables={"var_name": "var_value"})

Check the PyTessBaseAPI docstring for details.

@sirfz sirfz merged commit 29bc186 into master Apr 20, 2024
@zdenop
Copy link
Contributor

zdenop commented Apr 29, 2024

thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants