mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-26 12:09:52 +02:00
📝 README: Use new-style OCR-D parameter syntax and new-style mixed output file groups
This commit is contained in:
parent
a014bab5b6
commit
b3d012412b
1 changed files with 4 additions and 4 deletions
|
@ -59,20 +59,20 @@ make actevedef_718448162
|
|||
|
||||
# Create binarized images and line segmentation using other OCR-D projects
|
||||
cd actevedef_718448162
|
||||
ocrd-olena-binarize -p '{ "impl": "sauvola-ms-split" }' -I OCR-D-IMG -O OCR-D-IMG-BINPAGE,OCR-D-IMG-BIN
|
||||
ocrd-tesserocr-segment-region -I OCR-D-IMG-BINPAGE -O OCR-D-SEG-REGION
|
||||
ocrd-olena-binarize -P impl sauvola-ms-split -I OCR-D-IMG -O OCR-D-IMG-BIN
|
||||
ocrd-tesserocr-segment-region -I OCR-D-IMG-BIN -O OCR-D-SEG-REGION
|
||||
ocrd-tesserocr-segment-line -I OCR-D-SEG-REGION -O OCR-D-SEG-LINE
|
||||
```
|
||||
|
||||
Finally recognize the text using ocrd_calamari and the downloaded model:
|
||||
```
|
||||
ocrd-calamari-recognize -p '{ "checkpoint": "../gt4histocr-calamari1/*.ckpt.json" }' -I OCR-D-SEG-LINE -O OCR-D-OCR-CALAMARI
|
||||
ocrd-calamari-recognize -P checkpoint "../gt4histocr-calamari1/*.ckpt.json" -I OCR-D-SEG-LINE -O OCR-D-OCR-CALAMARI
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
ocrd-calamari-recognize -P checkpoint_dir ../gt4histocr-calamari1 -I OCR-D-SEG-LINE -O OCR-D-OCR-CALAMARI
|
||||
ocrd-calamari-recognize -P checkpoint_dir "../gt4histocr-calamari1" -I OCR-D-SEG-LINE -O OCR-D-OCR-CALAMARI
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue