hnesk/browse-ocrd

page view: add baselines if available

bertsky opened this issue ยท 1 comments

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.

Wonderful, thank you!