-
Notifications
You must be signed in to change notification settings - Fork 3
/
best-workflow-05-2020.sh
53 lines (50 loc) · 1.21 KB
/
best-workflow-05-2020.sh
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
46
47
48
49
50
51
52
53
#!/usr/bin/env ocrd-wf
ocrd-olena-binarize \
-I OCR-D-IMG \
-O OCR-D-BIN \
-P impl sauvola
ocrd-anybaseocr-crop \
-I OCR-D-BIN \
-O OCR-D-CROP
ocrd-olena-binarize \
-I OCR-D-CROP \
-O OCR-D-BIN2 \
-P impl kim
ocrd-cis-ocropy-denoise \
-I OCR-D-BIN2 \
-O OCR-D-BIN-DENOISE \
-P level-of-operation page
ocrd-cis-ocropy-deskew \
-I OCR-D-BIN-DENOISE \
-O OCR-D-BIN-DENOISE-DESKEW \
-P level-of-operation page
ocrd-tesserocr-segment-region \
-I OCR-D-BIN-DENOISE-DESKEW \
-O OCR-D-SEG-REG
ocrd-segment-repair \
-I OCR-D-SEG-REG \
-O OCR-D-SEG-REPAIR \
-P plausibilize true
ocrd-cis-ocropy-deskew \
-I OCR-D-SEG-REPAIR \
-O OCR-D-SEG-REG-DESKEW \
-P level-of-operation region
ocrd-cis-ocropy-clip \
-I OCR-D-SEG-REG-DESKEW \
-O OCR-D-SEG-REG-DESKEW-CLIP \
-P level-of-operation region
ocrd-cis-ocropy-segment \
-I OCR-D-SEG-REG-DESKEW-CLIP \
-O OCR-D-SEG-LINE \
-P level-of-operation region
ocrd-segment-repair \
-I OCR-D-SEG-LINE \
-O OCR-D-SEG-REPAIR-LINE \
-P sanitize true
ocrd-cis-ocropy-dewarp \
-I OCR-D-SEG-REPAIR-LINE \
-O OCR-D-SEG-LINE-RESEG-DEWARP
ocrd-calamari-recognize \
-I OCR-D-SEG-LINE-RESEG-DEWARP \
-O OCR-D-OCR \
-P checkpoint "$(VIRTUAL_ENV)/share/calamari/GT4HistOCR/*.ckpt.json"