core
core copied to clipboard
Collection of OCR-related python tools and wrappers from @OCR-D
> But surely, such a user database was at least created by that call. And if you did not run any `list-available` prior to that, then that database would be...
to keep the `/tmp` directory manageable in size.
A partial fix for #1218. There are still some annoying Tensorflow prints. Unfortunately, these cannot be disabled from the core or I am unaware how. ```sh (venv38-core) mm@MM-Notebook:~/repos/core$ ocrd resmgr...
A fix for #1237. The resource manager should now properly copy the directories recursively.
Currently, during a Docker build of `ocrd/all:medium`, we get: ``` #17 [13/17] RUN ocrd resmgr list-installed #17 17.22 19:08:16.861 ERROR ocrd.utils.get_moduledir - ocrd-sbb-binarize --dump-module-dir failed: [Errno 2] No such file...
It seems that with https://github.com/OCR-D/core/commit/269670528c40aec694a5704bce1be189d1a3102a we lost the ability to control all loggers at once from the CLI.
The documentation for the `prune-files` command says: > Removes mets:files that point to non-existing local files However, that's not what is implemented: https://github.com/OCR-D/core/blob/26a3f787cd7746b8e197427e74c532edbecefd8b/src/ocrd/cli/workspace.py#L560-L577 So either the documentation should read… >...
If I do ocrd resmgr download -a -n ~/.local/share/ocrd-resources/ocrd-origami-segment/bbz ocrd-origami-segment bbz2 then I end up with ``` File "/ocrd_all/core/build/__editable__.ocrd-2.65.0-py3-none-any/ocrd/cli/resmgr.py", line 155, in download fpath = resmgr.download( File "/ocrd_all/core/build/__editable__.ocrd-2.65.0-py3-none-any/ocrd/resource_manager.py", line 314,...