ocrd.cli.ocrd_tool module¶
OCR-D CLI: ocrd-tool.json management
ocrd ocrd-tool¶
Work with ocrd-tool.json JSON_FILE
ocrd ocrd-tool [OPTIONS] JSON_FILE COMMAND [ARGS]...
Arguments
- JSON_FILE¶
Required argument
list-tools¶
List tools
ocrd ocrd-tool list-tools [OPTIONS]
tool¶
Work with a single tool TOOL_NAME
ocrd ocrd-tool tool [OPTIONS] TOOL_NAME COMMAND [ARGS]...
Arguments
- TOOL_NAME¶
Required argument
categories¶
Categories of tool
ocrd ocrd-tool tool categories [OPTIONS]
description¶
Describe tool
ocrd ocrd-tool tool description [OPTIONS]
dump¶
Dump JSON of tool
ocrd ocrd-tool tool dump [OPTIONS]
help¶
Generate help for processors
ocrd ocrd-tool tool help [OPTIONS]
list-resources¶
List tool’s file resources
ocrd ocrd-tool tool list-resources [OPTIONS]
parse-params¶
Parse parameters with fallback to defaults and output as shell-eval’able assignments to params var.
ocrd ocrd-tool tool parse-params [OPTIONS]
Options
- -p, --parameter <parameter>¶
Parameters, either JSON string or path to JSON file
- -P, --parameter-override <parameter_override>¶
Parameter override
- -j, --json¶
Output JSON instead of shell variables
show-resource¶
Dump a tool’s file resource
ocrd ocrd-tool tool show-resource [OPTIONS] RES_NAME
Arguments
- RES_NAME¶
Required argument
steps¶
Steps of tool
ocrd ocrd-tool tool steps [OPTIONS]
validate¶
Validate an ocrd-tool.json
ocrd ocrd-tool validate [OPTIONS]
version¶
Version of ocrd-tool.json
ocrd ocrd-tool version [OPTIONS]