bundlewrap/bundles/scansnap/files/scan.sh
Franzi 5d4ca086e6
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/scansnap: do ocr in a separate process to speed up scanning
2021-05-24 10:24:01 +02:00

10 lines
253 B
Bash

#!/bin/bash
set -euo pipefail
OUTFILE=$(mktemp -d)
scanimage --source 'ADF Duplex' --format tiff --mode Gray --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" &