OCR-D / core

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

Home Page:https://ocr-d.de/core/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Processor.resolve_resource ignores without-extension

bertsky opened this issue · comments

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 need to (somehow) look up the typical extension(s) from the resource list and then go look for them in the filesystem.