ocrd.processor.builtin.dummy_processor module¶
-
class
ocrd.processor.builtin.dummy_processor.DummyProcessor(*args, **kwargs)[source]¶ Bases:
ocrd.processor.base.ProcessorBare-bones processor that copies mets:file from input group to output group.
Instantiate, but do not process. Unless
list_resourcesorshow_resourceorshow_helporshow_versionordump_jsonis true, setup for processing (parsing and validating parameters, entering the workspace directory).- Parameters
workspace (
Workspace) – The workspace to process. Can beNoneeven for processing (esp. on multiple workspaces), but then needs to be set before running.- Keyword Arguments
ocrd_tool (string) – JSON of the ocrd-tool description for that processor. Can be
Nonefor processing, but needs to be set before running.parameter (string) – JSON of the runtime choices for ocrd-tool
parameters. Can beNoneeven for processing, but then needs to be set before running.input_file_grp (string) – comma-separated list of METS ``fileGrp``s used for input.
output_file_grp (string) – comma-separated list of METS ``fileGrp``s used for output.
page_id (string) – comma-separated list of METS physical
pageIDs to process (or empty for all pages).show_resource (string) – If not
None, then instead of processing, resolve given resource by name and print its contents to stdout.list_resources (boolean) – If true, then instead of processing, find all installed resource files in the search paths and print their path names.
show_help (boolean) – If true, then instead of processing, print a usage description including the standard CLI and all of this processor’s ocrd-tool parameters and docstrings.
show_version (boolean) – If true, then instead of processing, print information on this processor’s version and OCR-D version. Exit afterwards.
dump_json (boolean) – If true, then instead of processing, print
ocrd_toolon stdout.