ocrd.resource_manager module¶
- class ocrd.resource_manager.OcrdResourceManager(userdir=None, xdg_config_home=None, xdg_data_home=None, skip_init=False)[source]¶
Bases:
object
Managing processor resources
- property userdir¶
- property xdg_data_home¶
- property xdg_config_home¶
- list_available(executable=None, dynamic=True, name=None, database=None, url=None)[source]¶
List models available for download by processor
- add_to_user_database(executable, res_filename, url=None, resource_type='file')[source]¶
Add a stub entry to the user resource.yml
- property default_resource_dir¶