core icon indicating copy to clipboard operation
core copied to clipboard

Collection of OCR-related python tools and wrappers from @OCR-D

Results 215 core issues
Sort by recently updated
recently updated
newest added
trafficstars

https://github.com/OCR-D/core/blob/71d295ac1fccbeb4164e230bd584e1920b9ab3c8/ocrd/ocrd/decorators/__init__.py#L39-L41 This makes the CLI wrapper behave non-functionally. It _usually_ still works (because click itself of course uses `sys.argv`), but fails with things like `click.testing.CliRunner`. IMO the only correct way...

Please feel free to suggest more changes that would lead to easier testing or improve the readability of the code. The Scrutinizer analysis already reports some good improvements so far....

This PR adds a test for ocrd-network. Purpose is that the test is available in the docker-image and can then be used with ocrd_all. It does not run with just...

Currently, running `ocrd workspace find --download` will download files, but print `None` for every file it downloaded (instead of the new `local_filename`). The cause is that `ret_entry` does not get...

When a download with `ocrd resmgr download` fails, e.g. due to a connectivity/proxy issue, the target file is still created, which leads to all kinds of problematic behavior. When a...

AFAICS the ocrd-tool.json's `parameter_usage` is nowhere used (except in a log message), and resolving resources `without-extension` does not work. It looks like instead of `os.path.exists`, in this case one would...

Note: we should also add test coverage for this. AFAICS, we need a cached `add_file` under the circumstance that a file for that page already exists, but in a different...

In some cases, when the `~/.config/ocrd/resources.yml` file is completely missing, the `ocrd resmgr` does not report that properly. ``` (venv38-core) mm@MM-Notebook:~/repos/core$ ocrd resmgr download ocrd-tesserocr-recognize '*' /home/mm/venv38-core/lib/python3.8/site-packages/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (2.1.0)...