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

page view: add baselines if available #34

Closed
bertsky opened this issue Nov 26, 2021 · 1 comment
Closed

page view: add baselines if available #34

bertsky opened this issue Nov 26, 2021 · 1 comment

Comments

@bertsky
Copy link
Contributor

bertsky commented Nov 26, 2021

For handwritten text, as for any segmentation produced via baseline detection, it is usually helpful to see the detected baselines directly. We should make that available next to

Feature.LINES: FeatureDescription('𝌆', 'lines', '/page:PcGts/page:Page/*//page:TextLine/page:Coords'),

by something like

    Feature.BASELINES: FeatureDescription('–', 'baselines', '/page:PcGts/page:Page/*//page:TextLine/page:Baseline'), 

These coordinates are linestrings instead of linear rings / polygons, and we may need to use a stronger line width when drawing to make it visible. But other than that, it should be fairly simple.

@hnesk hnesk closed this as completed in d353178 Nov 29, 2021
@bertsky
Copy link
Contributor Author

bertsky commented Nov 30, 2021

Wonderful, thank you!

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