Skip to content

Commit dd62a5b

Browse files
authored
Merge pull request #288 from bertsky/update-kraken
update ocrd_kraken
2 parents 196716b + 66ab0e1 commit dd62a5b

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "clstm"]
2-
path = clstm
3-
url = https://github.com/tmbdev/clstm.git
41
[submodule "ocrd_keraslm"]
52
path = ocrd_keraslm
63
url = https://github.com/OCR-D/ocrd_keraslm.git

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export PKG_CONFIG_PATH
5353
OCRD_EXECUTABLES = $(BIN)/ocrd # add more CLIs below
5454
CUSTOM_DEPS = unzip wget python3-venv parallel git less # add more packages for deps-ubuntu below (or modules as preqrequisites)
5555

56-
DISABLED_MODULES ?= cor-asv-fst opencv-python ocrd_kraken clstm ocrd_ocropy
56+
DISABLED_MODULES ?= cor-asv-fst opencv-python ocrd_ocropy
5757
# Default to all submodules, but allow overriding by user
5858
# (and treat the empty value as if it was unset)
5959
# opencv-python is only needed for aarch64-linux-gnu and other less common platforms,
@@ -199,9 +199,6 @@ $(BIN)/ocrd: $(SHARE)/opencv-python
199199
endif
200200

201201
ifneq ($(findstring ocrd_kraken, $(OCRD_MODULES)),)
202-
$(SHARE)/clstm: | $(SHARE)/numpy $(SHARE)
203-
CUSTOM_DEPS += scons libprotobuf-dev protobuf-compiler libpng-dev libeigen3-dev swig
204-
205202
OCRD_EXECUTABLES += $(OCRD_KRAKEN)
206203
install-models: install-models-kraken
207204
.PHONY: install-models-kraken
@@ -210,7 +207,8 @@ install-models-kraken:
210207
. $(ACTIVATE_VENV) && ocrd resmgr download ocrd-kraken-recognize '*'
211208
OCRD_KRAKEN := $(BIN)/ocrd-kraken-binarize
212209
OCRD_KRAKEN += $(BIN)/ocrd-kraken-segment
213-
$(call multirule,$(OCRD_KRAKEN)): ocrd_kraken $(SHARE)/clstm $(BIN)/ocrd
210+
OCRD_KRAKEN += $(BIN)/ocrd-kraken-recognize
211+
$(call multirule,$(OCRD_KRAKEN)): ocrd_kraken $(BIN)/ocrd
214212
$(pip_install)
215213
endif
216214

@@ -643,7 +641,7 @@ endef
643641
endif
644642

645643
# avoid making these .PHONY so they do not have to be repeated:
646-
# clstm tesserocr
644+
# tesserocr
647645
$(SHARE)/%: % | $(ACTIVATE_VENV) $(SHARE)
648646
. $(ACTIVATE_VENV) && cd $< && $(SEMPIP) $(PIP) install $(PIP_OPTIONS) .
649647
@touch $@

clstm

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)