1
0
Fork 0
mirror of https://github.com/mikegerber/ocrd_calamari.git synced 2025-06-09 03:39:55 +02:00

Set pcGtsId

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

Fixes #40.
This commit is contained in:
Gerber, Mike 2020-08-06 12:31:47 +02:00
parent 046e3e8ee3
commit 7da45a0ec1

View file

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