-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathall-tess-MODEL.mk
45 lines (36 loc) · 1.17 KB
/
all-tess-MODEL.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file can run a workflow on a single workspace (non-recursively).
#
# Install by copying (or symlinking) makefiles into a directory
# where all OCR-D workspaces (unpacked BagIts) reside and running
# `make` there (or including files from there).
#
# Call via:
# `make -f WORKFLOW-CONFIG.mk`
#
# To rebuild partially, you must pass -W to `make`:
# `make -f WORKFLOW-CONFIG.mk -W FILEGRP`
#
# To build in parallel, use `-j [CPUS] [-l [LOADLEVEL]]` etc.
#
# To get general help:
# `make -f WORKFLOW-CONFIG.mk help`
#
# To get a description of the workflow:
# `make -f WORKFLOW-CONFIG.mk info`
###
# From here on, custom configuration begins.
INPUT = OCR-D-IMG
$(INPUT):
ocrd workspace find -G $@ --download
OUTPUT = OCR-D-OCR-TESS
$(OUTPUT): $(INPUT)
$(OUTPUT): TOOL = ocrd-tesserocr-recognize
$(OUTPUT): PARAMS = "segmentation_level": "region", "model": "$(or $(MODEL),Fraktur+Latin)", "shrink_polygons": true #, "auto_model": true
info:
@echo "This is a simple workflow with Tesseract segmentation+recognition"
@echo "from $(INPUT) to $(OUTPUT) with recognition model MODEL=$(MODEL)"
.PHONY: info
.DEFAULT_GOAL = $(OUTPUT)
# Down here, custom configuration ends.
###
include Makefile