diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index 5595cdd..3617f00 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -1938,7 +1938,7 @@ class textline_detector: - page_print_sub=ET.SubElement(page, 'PrintSpace') + page_print_sub=ET.SubElement(page, 'Border') coord_page = ET.SubElement(page_print_sub, 'Coords') points_page_print='' diff --git a/qurator/sbb_textline_detector/ocrd_cli.py b/qurator/sbb_textline_detector/ocrd_cli.py index 26faf45..726a8e1 100644 --- a/qurator/sbb_textline_detector/ocrd_cli.py +++ b/qurator/sbb_textline_detector/ocrd_cli.py @@ -83,9 +83,9 @@ class OcrdSbbTextlineDetectorRecognize(Processor): page = pcgts.get_Page() # Merge results → PAGE file - if page.get_PrintSpace(): - log.warning("Page already contained a printspace") - page.set_PrintSpace(tmp_page.get_PrintSpace()) + if page.get_Border(): + log.warning("Page already contained a border") + page.set_Border(tmp_page.get_Border()) if page.get_ReadingOrder(): log.warning("Page already contained a reading order") page.set_ReadingOrder(tmp_page.get_ReadingOrder())