From b3d012412babfd84a47bd84e77ffeb0bcff89ec5 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 21 Jan 2021 12:24:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20README:=20Use=20new-style=20OCR-?= =?UTF-8?q?D=20parameter=20syntax=20and=20new-style=20mixed=20output=20fil?= =?UTF-8?q?e=20groups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 079f2a8..d277479 100644 --- a/README.md +++ b/README.md @@ -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 ```