From 1ef850992cf182fd6ea8a6e54b825080554fce6c Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 7 Feb 2020 13:20:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Use=20same=20style=20of=20specif?= =?UTF-8?q?ying=20parameters=20for=20all=20processors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my_ocrd_workflow | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/my_ocrd_workflow b/my_ocrd_workflow index 09a8e5d..8b86d3e 100755 --- a/my_ocrd_workflow +++ b/my_ocrd_workflow @@ -36,11 +36,12 @@ do_validate() { do_binarization() { # Binarize the images + ocrd_olena_binarize_paramters='{"impl": "sauvola-ms-split"}' remove_filegrp OCR-D-IMG-BINPAGE mets.xml remove_filegrp OCR-D-IMG-BIN mets.xml ocrd-olena-binarize -l $LOG_LEVEL \ -m mets.xml -I OCR-D-IMG -O OCR-D-IMG-BINPAGE \ - -p '{"impl": "sauvola-ms-split"}' + -p "$ocrd_olena_binarize_paramters" } do_linesegmentation_tesserocr() { @@ -64,11 +65,12 @@ do_linesegmentation_sbb() { # Segment the lines in the images # TODO: Check that this works with the RGB images + ocrd_sbb_textline_detector_parameters='{"model": "/var/lib/textline_detection"}' remove_filegrp OCR-D-SEG-REGION mets.xml remove_filegrp OCR-D-SEG-LINE mets.xml ocrd-sbb-textline-detector -l $LOG_LEVEL \ -m mets.xml -I OCR-D-IMG-BINPAGE -O OCR-D-SEG-LINE \ - -p '{"model": "/var/lib/textline_detection"}' + -p "$ocrd_sbb_textline_detector_parameters" } do_ocr() {