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

Add option to get output in hOCR format #72

Merged
merged 2 commits into from
Jan 27, 2023
Merged

Add option to get output in hOCR format #72

merged 2 commits into from
Jan 27, 2023

Conversation

robertknight
Copy link
Owner

Add methods to OCRClient and OCREngine to get output in hOCR format, for use with existing OCR tools, and add a dropdown menu in the demo output to allow switching between plain text and hOCR formats.

Add `OCRClient.getHOCR` and `OCREngine.getHOCR` methods which are used like
`getText`, but return the text and layout in hOCR format. This is useful for
feeding into existing tools which work with this format.
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.

1 participant