Merge pull request #38 from qurator-spk/printspace-vs-border

replace 'PrintSpace' with 'Border'
pull/41/head
vahidrezanezhad 4 years ago committed by GitHub
commit a7c92c92ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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=''

@ -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())

Loading…
Cancel
Save