From 46b1fa9426262416202374dea052135e38995f08 Mon Sep 17 00:00:00 2001 From: Robert Sachunsky <38561704+bertsky@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:44:17 +0200 Subject: [PATCH] process_images.sh: allow skipping workspace validation --- process_images.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/process_images.sh b/process_images.sh index 48de135..b5da6a5 100755 --- a/process_images.sh +++ b/process_images.sh @@ -17,6 +17,7 @@ parse_args() { PROCESS_ID= TASK_ID= WORKFLOW=/workflows/ocr-workflow-default.sh + VALIDATE=1 IMAGES_SUBDIR=images RESULT_SUBDIR=ocr/alto while (($#)); do @@ -31,6 +32,7 @@ where OPTIONS can be any/all of: --script SCRIPT overall script of the material to process via OCR --workflow FILE workflow file to use for processing, default: $WORKFLOW + --no-validate skip comprehensive validation of workflow results --img-subdir IMG name of the subdirectory to read images from, default: $IMAGES_SUBDIR --ocr-subdir OCR name of the subdirectory to write OCR results to, default: @@ -60,6 +62,7 @@ EOF --lang) LANGUAGE="$2"; shift;; --script) SCRIPT="$2"; shift;; --workflow) WORKFLOW="$2"; shift;; + --no-validate) VALIDATE=0;; --img-subdir) IMAGES_SUBDIR="$2"; shift;; --ocr-subdir) RESULT_SUBDIR="$2"; shift;; --proc-id) PROCESS_ID="$2"; shift;; @@ -95,7 +98,7 @@ init "$@" post_sync_workdir - post_validate_workdir + if ((VALIDATE)); then post_validate_workdir; fi post_process_to_procdir