sbb_binarization/Makefile

30 lines
838 B
Makefile
Raw Normal View History

2020-10-16 13:31:28 +02:00
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
@echo " install Install with pip"
@echo " model Downloads the pre-trained models from qurator-data.de"
@echo " test Run tests"
@echo ""
@echo " Variables"
@echo ""
@echo " MODEL_DIR Directory to store models"
# END-EVAL
# Install with pip
install:
pip install .
2020-10-16 13:31:28 +02:00
# Downloads the pre-trained models from qurator-data.de
2021-01-28 14:01:55 +01:00
.PHONY: model
model:
ocrd resmgr download --allow-uninstalled --location cwd ocrd-sbb-binarize default
2020-10-16 13:31:28 +02:00
# Run tests
test: model
2021-01-28 14:19:22 +01:00
ocrd-sbb-binarize -m repo/assets/data/kant_aufklaerung_1784/data/mets.xml -I OCR-D-IMG -O BIN -P model default
ocrd-sbb-binarize -m repo/assets/data/kant_aufklaerung_1784-page-region/data/mets.xml -I OCR-D-IMG -O BIN -P model default -P operation_level region