I use the following settings and Bash script to scan receipts or documents 
using an older Neat Mobil Scanner, the one that came with Neat Receipts for 
Mac. I’m interested in eliminating the following messages which appear as each 
item is scanned.:
 
[gt68xx] WARNING: You have manually added the ids of your scanner 
[gt68xx]          to gt68xx.conf. Please use an appropriate override 
[gt68xx]          for your scanner. Use extreme care and switch off 
[gt68xx]          the scanner immediately if you hear unusual noise. 
[gt68xx]          Please report any success to 
[gt68xx]          sane-devel@lists.alioth.debian.org. Please provide as many
[gt68xx]          details as possible, e.g. the exact name of your
[gt68xx]          scanner, ids, settings etc.

The Bash script I wrote:

Peters-Mini:bin peter$ cat scan
#!/bin/bash
#scan
#set -x

# Standard Helpers ############################
showhelp ()
{
echo "Name:
        scan
Synopsis:
        scan t TYPE
Description
        Begins a scanning session for scanning one or more receipts or 
documents.
Options
        d - debug mode - not implemented
        h - show this help"
echo "  t - TYPE of document to scan [d or r] (document or receipt)
Author
       Peter Jorgensen (pjorgen...@mac.com)
"
echo "COPYRIGHT
        Copyright © 2011 Free Software Foundation, Inc.  License GPLv3+:
        GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
"
exit 1
}

fail ()
{
        fmsg="$1"
        [ -z "$fmsg" ] && msg="Unknown fail"
        echo "$fmsg"
        exit 1
}

cont ()
{
        cmsg="$1"
        [ -z "$cmsg" ] && msg="unknown debug line"
        echo  "$cmsg"
        select ans in 'Continue debugging' 'Continue without debugging' 'Stop 
execution' ; do
                case $ans in
                        "Continue debugging" )
                                echo "Continuing to debug";
                                break;;
                        "Continue without debugging" )
                                debug="false";
                                echo "Debugging is now off";
                                break;;
                        "Stop execution" )
                                exit 1 ;;
                esac
        done
}

while getopts dht: option
        do case "${option}" in
                d) debug="true" ;;
                h) showhelp ;;
                t) type="${OPTARG}" ;;
                *) fail "illegal option ${OPTORG}" ;;
        esac
done

if [[ -n "$debug" ]] ; then
        set -x
fi

cmdbase="scanimage"
opts="--format=tiff --mode=Gray --gamma-value=0.999451"
ext=".tiff"

case "${type}" in
        r) 
savepath="/Users/peter/Documents/Personal/Household/Finances/scanned_receipts/2015/"
 && scantype="receipt" && width=80;;
        d) savepath="/Users/peter/Documents/Personal/scanned_docs/" && 
scantype="document"  && width=218 ;;
esac

read -p "Enter a name for the first $scantype:" filename
while [[ -n $filename ]]
do
        filespec="$savepath$filename$ext"
        if [[ -e "$filespec" ]] ; then
                echo "File $filename exists"
                select ans in 'Cancel' 'Overwrite' ; do
                        case $ans in
                                "Cancel" )
                                        break ;;
                                "Overwrite" )
                                        scanimage $opts -x $width > $filespec 
&& open -a Finder "$filespec" 
                                        break ;;
                        esac
                done
        else
                scanimage $opts -x $width > $filespec && open -a Finder 
"$filespec"
        fi
        filename=""
        echo ""
        read -p "Enter a name for the next $scantype (null to stop): " filename
done
exit 0
Peters-Mini:bin peter$ 

The gt68xx config file (/usr/local/etc/sane.d/gt68xx.conf):


# gt68xx.conf: Configuration file for GT68XX based scanners (1.0.24)
# Read man sane-gt68xx for documentation

# Put the firmware file into "/usr/local/share/sane/gt68xx/".

# Manual configuration is necessary for some scanners. Please uncomment the
# override line and optinally the vendor and product lines that apply to your
# scanner. For some scanners it's also necessary to change the name of the 
# firmware file. 

#############################################################################
# For testing scanners that are not yet supported by this backend add the
# vendor and product ids in the usb line below. Also fill in the override
# and firmware lines. For more details, see:
# http://www.meier-geinitz.de/sane/gt68xx-backend/adding.html


##############################################################################
# Autodetect Plustek OpticSlim M12 and NeatReceipts Scanalizer Professional 2.5
#usb 0x07b3 0x0412
#vendor "NeatReceipts"
#model "Scanalizer Professional 2.5"

##############################################################################
# Iriscan Express 2
usb 0x07b3 0x045f

##############################################################################
# Autodetect NeatReceipts Mobile Scanner 2008 White
usb 0x07b3 0x0462
#usb 1972  1122 in decimal
#override "plustek-opticslim-1200"
override "plustek-opticslim-m12"
firmware "/usr/local/share/sane/gt68xx/cism216.fw"
vendor "NeatReceipts"
model "Neat Mobile Scanner 2008 (White)"
##############################################################################
# Autodetect Plustek OpticSlim 1200
#usb 0x07b3 0x0413

##############################################################################
# Autodetect Plustek OpticSlim 2400
#usb 0x07b3 0x0422

##############################################################################
# Autodetect Plustek OpticSlim 2400 plus
#usb 0x07b3 0x0454
#model "OpticSlim 2400 Plus"
#override "plustek-opticslim-2400"

I also have installed cism216.fw in /usr/local/share/sane/gt68xx/




-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-requ...@lists.alioth.debian.org

Reply via email to