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

warn if PAGE regions overlap #1

Open
bertsky opened this issue Jan 30, 2021 · 0 comments
Open

warn if PAGE regions overlap #1

bertsky opened this issue Jan 30, 2021 · 0 comments

Comments

@bertsky
Copy link

bertsky commented Jan 30, 2021

IIUC this is intended for pixel classifier training, where a flat colormap is the correct representation. But in PAGE-XML, regions may overlap each other arbitrarily, and can also be recursive (and in some cases must be).

So to avoid any unintended errors, IMHO users should be warned whenever overlaps do exist (and if they do, how large).

Also, there should still be a reasonable fallback strategy. But in the current implementation, images replace text, separators replace images, tables replace separators. For general purpose layouting, I think this should instead be image < text < table < sep.

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