mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 03:39:55 +02:00
recognize: delegate to core functions
This commit is contained in:
parent
13031d585f
commit
01312c6369
1 changed files with 1 additions and 12 deletions
|
@ -242,18 +242,7 @@ class CalamariRecognize(Processor):
|
|||
|
||||
|
||||
# Add metadata about this operation and its runtime parameters:
|
||||
metadata = pcgts.get_Metadata() # ensured by from_file()
|
||||
metadata.add_MetadataItem(
|
||||
MetadataItemType(type_="processingStep",
|
||||
name=self.ocrd_tool['steps'][0],
|
||||
value=TOOL,
|
||||
Labels=[LabelsType(
|
||||
externalModel="ocrd-tool",
|
||||
externalId="parameters",
|
||||
Label=[LabelType(type_=name, value=self.parameter[name])
|
||||
for name in self.parameter.keys()])]))
|
||||
|
||||
|
||||
self.add_metadata(pcgts)
|
||||
file_id = make_file_id(input_file, self.output_file_grp)
|
||||
pcgts.set_pcGtsId(file_id)
|
||||
self.workspace.add_file(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue