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:
parent
046e3e8ee3
commit
7da45a0ec1
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue