bundlewrap/bundles/scansnap/files/scan.sh

10 lines
270 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -euo pipefail
OUTFILE=$(mktemp -d)
2021-05-24 09:01:13 +00:00
scanimage --source 'ADF Duplex' --format tiff --mode Color --brightness 23 --resolution 300 --page-width 210 --page-height 297.3 -x 210 -y 297.3 --batch=${OUTFILE}/p%04d.tiff
/etc/scanbd/scripts/ocr.sh "$OUTFILE" &