ocrd package¶
OCR-D reference implementation, base package: decorators and classes for processors and CLIs.
Related (and dependent) packages:
ocrd_utils
Contains utilities and constants, e.g. for logging, path normalization, coordinate calculation etc.ocrd_models
Contains file format wrappers for PAGE-XML, METS, EXIF metadata etc.ocrd_modelfactory
Code to instantiate models from existing data.ocrd_validators
Schemas and routines for validating BagIt,ocrd-tool.json
, workspaces, METS, page, CLI parameters etc.
Subpackages¶
- ocrd.cli package
- ocrd.decorators package
- ocrd.processor package
Submodules¶
- ocrd.constants module
- ocrd.mets_server module
OcrdFileModel
OcrdAgentModel
OcrdFileListModel
OcrdFileGroupListModel
OcrdAgentListModel
ClientSideOcrdMets
ClientSideOcrdMets.session
ClientSideOcrdMets.save()
ClientSideOcrdMets.stop()
ClientSideOcrdMets.reload()
ClientSideOcrdMets.unique_identifier
ClientSideOcrdMets.workspace_path
ClientSideOcrdMets.file_groups
ClientSideOcrdMets.agents
ClientSideOcrdMets.add_agent()
ClientSideOcrdMets.find_files()
ClientSideOcrdMets.find_all_files()
ClientSideOcrdMets.add_file()
MpxReq
OcrdMetsServer
is_socket_in_use()
- ocrd.resolver module
- ocrd.resource_manager module
OcrdResourceManager
OcrdResourceManager.userdir
OcrdResourceManager.xdg_data_home
OcrdResourceManager.xdg_config_home
OcrdResourceManager.save_user_list()
OcrdResourceManager.load_resource_list()
OcrdResourceManager.list_available()
OcrdResourceManager.list_installed()
OcrdResourceManager.add_to_user_database()
OcrdResourceManager.default_resource_dir
OcrdResourceManager.location_to_resource_dir()
OcrdResourceManager.resource_dir_to_location()
OcrdResourceManager.parameter_usage()
OcrdResourceManager.download()
- ocrd.task_sequence module
- ocrd.workspace module
Workspace
Workspace.reload_mets()
Workspace.merge()
Workspace.download_url()
Workspace.download_file()
Workspace.remove_file()
Workspace.remove_file_group()
Workspace.rename_file_group()
Workspace.add_file()
Workspace.save_mets()
Workspace.resolve_image_exif()
Workspace.resolve_image_as_pil()
Workspace.image_from_page()
Workspace.image_from_segment()
Workspace.save_image_file()
Workspace.find_files()
- ocrd.workspace_backup module
- ocrd.workspace_bagger module