Set pcGtsId

Newest OCR-D validation checks PAGE-XML pcGtsId against METS file/@ID.
Set the pcGtsId here correctly.

Fixes #40.
fix/readme-no-checkpoint
Gerber, Mike 4 years ago
parent 046e3e8ee3
commit 7da45a0ec1

@ -222,6 +222,7 @@ class CalamariRecognize(Processor):
file_id = self._make_file_id(input_file, n)
pcgts.set_pcGtsId(file_id)
self.workspace.add_file(
ID=file_id,
file_grp=self.output_file_grp,

Loading…
Cancel
Save