qurator-spk / sbb_binarization

Document Image Binarization
Apache License 2.0
69 stars 14 forks source link

combine SBB_BINARIZE_DATA and model parameter #9

Closed kba closed 3 years ago

kba commented 3 years ago

https://github.com/qurator-spk/sbb_binarization/pull/6

Base the param path (if relative) on the envvar. So model would stay required, and SBB_BINARIZE_DATA would merely be another search path (besides CWD = workspace). Call e.g. tar -C /my/path/to models.tar.gz; SBB_BINARIZE_DATA=/my/path/to ocrd-sbb-binarize -I OCR-D-IMG -O OCR-D-BIN -P model models

CWD in this implementation is not the workspace directory but the actual CWD.