From bdb5f5eb47668416dcd60d03f807b38e963a1501 Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Sat, 6 Aug 2011 12:34:39 +0800 Subject: [PATCH] Do less with unpaper. --- scan2pages.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scan2pages.sh b/scan2pages.sh index dbd66ee..069b421 100755 --- a/scan2pages.sh +++ b/scan2pages.sh @@ -162,7 +162,11 @@ for scanpgnum in `$my_seq 1 $pages`; do #unpaper it physpgbase=$outdir/physpg-${scanpgnum} if [ ! -e ${physpgbase}-1.pnm ] || [ ! -e ${physpgbase}-2.pnm ]; then - unpaper $unpaperflags --layout double --overwrite -ni 10 -op 2 $cleanscanpg ${physpgbase}-%01d.pnm || exit 1 + # most of unpaper's processing is redundant given ocropus, and somewhat too agressive + unpaper $unpaperflags --layout double --overwrite -op 2 \ + --no-processing \ + $cleanscanpg ${physpgbase}-%01d.pnm || exit 1 + fi; for physpgnum in $($my_seq 1 2); do -- 2.20.1