From 4e60c9ba0964e0bcad87d8c796951e16a48d0a46 Mon Sep 17 00:00:00 2001 From: fritz-hh Date: Mon, 30 Dec 2013 23:55:26 +0100 Subject: [PATCH] Warn user in case of low resolution --- src/ocrPage.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ocrPage.sh b/src/ocrPage.sh index 800433fe..f00171b7 100644 --- a/src/ocrPage.sh +++ b/src/ocrPage.sh @@ -141,6 +141,8 @@ fi if [ "$dpi" -lt "$OVERSAMPLING_DPI" ]; then [ $VERBOSITY -ge $LOG_WARN ] && echo "Page $page: Low image resolution detected ($dpi dpi). Performing oversampling ($OVERSAMPLING_DPI dpi) to try to get better OCR results." dpi="$OVERSAMPLING_DPI" +elif [ "$dpi" -lt "200" ]; then + [ $VERBOSITY -ge $LOG_WARN ] && echo "Page $page: Low image resolution detected ($dpi dpi). If needed, please use the \"-o\" to try to get better OCR results." fi # Identify if page image should be saved as ppm (color) or pgm (gray)