Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add qurator-spk/sbb_binarization #214

Merged
merged 3 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@
[submodule "ocrd_olahd_client"]
path = ocrd_olahd_client
url = https://github.com/OCR-D/ocrd_olahd_client.git
[submodule "sbb_binarization"]
path = sbb_binarization
url = https://github.com/qurator-spk/sbb_binarization
kba marked this conversation as resolved.
Show resolved Hide resolved
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,19 @@ else
endif
endif

ifneq ($(findstring sbb_binarization, $(OCRD_MODULES)),)
OCRD_EXECUTABLES += $(SBB_BINARIZATION)
SBB_BINARIZATION := $(BIN)/ocrd-sbb-binarize
$(SBB_BINARIZATION): sbb_binarization $(BIN)/ocrd
ifeq (0,$(MAKELEVEL))
$(MAKE) -B -o $< $(notdir $(SBB_BINARIZATION))
$(call delegate_venv,$(SBB_BINARIZATION))
$(SBB_BINARIZATION): VIRTUAL_ENV := $(SUB_VENV)/headless-tf1
kba marked this conversation as resolved.
Show resolved Hide resolved
else
$(pip_install)
endif
endif

ifneq ($(findstring sbb_textline_detector, $(OCRD_MODULES)),)
OCRD_EXECUTABLES += $(SBB_LINE_DETECTOR)
SBB_LINE_DETECTOR := $(BIN)/ocrd-sbb-textline-detector
Expand Down
1 change: 1 addition & 0 deletions sbb_binarization
Submodule sbb_binarization added at 3e60a6