mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-09 11:50:02 +02:00
🐛 sbb_textline_detection: Set pcGtsId
Newest OCR-D workspace validation requires that the pcGtsId of a PAGE-XML file matches its METS mets:file/ID. Fix this by setting it correctly.
This commit is contained in:
parent
eba5f544fe
commit
8b01d9e671
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ class OcrdSbbTextlineDetectorRecognize(Processor):
|
|||
|
||||
# Create a new PAGE file from the input file
|
||||
pcgts = page_from_file(self.workspace.download_file(input_file))
|
||||
pcgts.set_pcGtsId(file_id)
|
||||
page = pcgts.get_Page()
|
||||
|
||||
# Merge results → PAGE file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue