v3.0.0a1
Pre-release
Pre-release
#1240 for details
Changed:
- 🔥 Deprecate
Processor.process
- update spec to v3.25.0, which requires annotating fileGrp cardinality in
ocrd-tool.json
- 🔥 Remove passing non-processing kwargs to
Processor
constructor, add as members..
(i.e.show_help
,dump_json
,dump_module_dir
,list_resources
,show_resource
,resolve_resource
) - 🔥 Deprecate passing processing arg / kwargs to
Processor
constructor..
(i.e.workspace
,page_id
,input_file_grp
,output_file_grp
; now all set byrun_processor
) - 🔥 Deprecate passing
ocrd-tool.json
metadata toProcessor
constructor ocrd.processor
: Handle loading of bundledocrd-tool.json
generically
Added:
Processor.process_workspace
: process a complete workspace, with default implementationProcessor.process_page_file
: process an OcrdFile, with default implementationProcessor.process_page_pcgts
: process a single OcrdPage, produce a single OcrdPage, required to implementProcessor.verify
: handle fileGrp cardinality verification, with default implementationProcessor.setup
: to set up processor before processing, optional