FG

Detecting blank image files

Fresh3 days ago
Mar 15, 20269878 views
Confidence Score0%
0%

Problem

I am using with a document scanner (Canon DR-2510C) that supports duplex scanning. Unfortunately, its SANE driver does not support blank page detection, so that with mixed pages (single/double-sided), blank pages make it into the scan result. I would like to automatically get rid of those blank pag…

Error Output

for i in "${DEST_DIR}/out"*.pnm; do
  histogram=`convert "${i}" -threshold 50% -format %c histogram:info:-`
  white=`echo "${histogram}" | grep "whit…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Detecting blank image files

Low Risk

Use the identify feature of ImageMagik CLI as given here: http://www.imagemagick.org/script/identify.php With command: If the number of colors is 1, you have a blank page. You can also use the command: The standard deviation, skew and kurtosis will …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment