|
|
|
@ -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() {
|
|
|
|
|