mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 22:59: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
|
export TEXTEQUIV_LEVEL=glyph
|
||||||
|
|
||||||
# Command line parameters
|
# Command line parameters
|
||||||
OPTS=`getopt -o I: --long input-file-grp: -- "$@"`
|
OPTS=`getopt -o I: --long input-file-grp:,skip-validation -- "$@"`
|
||||||
eval set -- "$OPTS"
|
eval set -- "$OPTS"
|
||||||
INPUT_FILE_GRP=OCR-D-IMG
|
INPUT_FILE_GRP=OCR-D-IMG
|
||||||
|
SKIP_VALIDATION=false
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-I|--input-file-grp) INPUT_FILE_GRP=$2; shift 2;;
|
-I|--input-file-grp) INPUT_FILE_GRP=$2; shift 2;;
|
||||||
|
--skip-validation) SKIP_VALIDATION=true; shift;;
|
||||||
|
|
||||||
--) shift; break;;
|
--) shift; break;;
|
||||||
*) break;;
|
*) break;;
|
||||||
|
@ -46,7 +48,9 @@ do_validate() {
|
||||||
--skip pixel_density
|
--skip pixel_density
|
||||||
--page-strictness lax
|
--page-strictness lax
|
||||||
--page-coordinate-consistency off'
|
--page-coordinate-consistency off'
|
||||||
|
if [ "$SKIP_VALIDATION" = false ]; then
|
||||||
ocrd workspace validate $validate_options
|
ocrd workspace validate $validate_options
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_binarization() {
|
do_binarization() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue