You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://gitter.im/OCR-D/Lobby?at=603289f74c79215749fed1bb @SB2020-eye 17:27
Using Prima Page Viewer to view an xml file, is there a way to save what I am looking at as an image file? (This will help me compare results of different workflows more efficiently.) @SB2020-eye 18:06
(PS ...or directly doing this from an ocr-d workflow is even better, of course, if possible!)
It might be useful to have a processor in OCR-D/core that renders PAGE-XML and its elements to an image file to debug.
Yes, sry, I forgot about ocrd-segment-extract-pages -P plot_*.
And yes, I think it might be useful to have API-level support for PAGE rendering in core and potentially bundle a processor much like ocrd-segment-extract-pages.
Ok, then I suggest simply moving all ocrd-segment-extract-* stuff from ocrd_segment into ocrd.processor.builtin and refactoring the various shared functions into ocrd_models.ocrd_page, maybe grouped into coordinate repair (unravelling validation reports), iteration through the segment hierarchy, and ImageDraw.Draw.polygon() (both by alpha compositing or plain).
(One might even move replace-original and replace-page, perhaps with better naming.)
That would also help keeping ocrd_segment small and avoid unnecessary dependencies.
It might be useful to have a processor in OCR-D/core that renders PAGE-XML and its elements to an image file to debug.
Tools that could be wrapped:
ocrd-segment-extract-pages
from https://github.com/OCR-D/ocrd_segment/The text was updated successfully, but these errors were encountered: