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

OcrdPage: also offer get_AllRegions on region level #863

Open
bertsky opened this issue May 16, 2022 · 0 comments
Open

OcrdPage: also offer get_AllRegions on region level #863

bertsky opened this issue May 16, 2022 · 0 comments
Assignees

Comments

@bertsky
Copy link
Collaborator

bertsky commented May 16, 2022

We currently add our get_AllRegions() to the Page level only. But the PAGE-XML / generateDS API makes it complicated to enumerate all types or regions – not only on the page level, but also recursively. So we should generalize the implementation slightly (because ReadingOrder is only available at the top level), and then offer the same entry point in all region types as well.

For example, I may want to look at all text, separator and graphic regions contained in a table region of interest. Or all text lines somehow recursively contained in a music or map region of interest.

@kba kba self-assigned this May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants