mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-09 11:50:02 +02:00
🐛 sbb_textline_detector: Do not print PAGE output to stdout
ocrd-sbb-textline-detector uses ocrd_page's parse() to parse XML input, which writes the XML to stdout by default. Fix this by silencing it using parse()'s silence=True.
This commit is contained in:
parent
d60ec2bd38
commit
11c0e9cee5
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class OcrdSbbTextlineDetectorRecognize(Processor):
|
|||
|
||||
# Read segmentation results
|
||||
tmp_filename = os.path.join(tmp_dirname, file_id) + '.xml'
|
||||
tmp_pcgts = ocrd_models.ocrd_page.parse(tmp_filename)
|
||||
tmp_pcgts = ocrd_models.ocrd_page.parse(tmp_filename, silence=True)
|
||||
tmp_page = tmp_pcgts.get_Page()
|
||||
|
||||
# Create a new PAGE file from the input file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue