mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49:53 +02:00
✨ Allow skipping validation
This commit is contained in:
parent
f0da2c95ba
commit
a5b4e06a09
1 changed files with 6 additions and 2 deletions
|
@ -7,12 +7,14 @@ export LOG_LEVEL=${LOG_LEVEL:-DEBUG} # /etc/ocrd_logging.py uses this to set le
|
|||
export TEXTEQUIV_LEVEL=glyph
|
||||
|
||||
# Command line parameters
|
||||
OPTS=`getopt -o I: --long input-file-grp: -- "$@"`
|
||||
OPTS=`getopt -o I: --long input-file-grp:,skip-validation -- "$@"`
|
||||
eval set -- "$OPTS"
|
||||
INPUT_FILE_GRP=OCR-D-IMG
|
||||
SKIP_VALIDATION=false
|
||||
while true; do
|
||||
case "$1" in
|
||||
-I|--input-file-grp) INPUT_FILE_GRP=$2; shift 2;;
|
||||
--skip-validation) SKIP_VALIDATION=true; shift;;
|
||||
|
||||
--) shift; break;;
|
||||
*) break;;
|
||||
|
@ -46,7 +48,9 @@ do_validate() {
|
|||
--skip pixel_density
|
||||
--page-strictness lax
|
||||
--page-coordinate-consistency off'
|
||||
if [ "$SKIP_VALIDATION" = false ]; then
|
||||
ocrd workspace validate $validate_options
|
||||
fi
|
||||
}
|
||||
|
||||
do_binarization() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue