[sane-devel] sane-control-option

technomage technomage-hawke@cox.net
Sun, 25 May 2003 05:42:16 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 25 May 2003 06:05 pm, Deiters wrote:
> Do not guess the coordinates of the scan area corners,
> but ask the scanner:
> 	scanimage -d vendor:/dev/my_scanner -v -h
> reports the scan margins.
>
> Regards,
>
> Ulrich Deiters
I tried that command here.
It didn't like the sequence (I think the -h is a little off).


this is the output I got....

*********************************************************
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write PNM image data to
standard output.

- -d, --device-name=DEVICE   use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff      file format of output file
- -i, --icc-profile=PROFILE  include this ICC profile into TIFF file
- -L, --list-devices         show available scanner devices
- -f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), and %i (index number)
- -b, --batch[=FORMAT]       working in batch mode, FORMAT is `out%d.pnm' or
                           `out%d.tif' by default depending on --format
    --batch-start=#        page number to start naming files with
    --batch-count=#        how many pages to scan in batch mode
    --batch-increment=#    increase number in filename by an amount of #
    --batch-double         increment page number by two for 2sided originals
                           being scanned in a single sided scanner
    --accept-md5-only      only accept authorization requests using md5
- -n, --dont-scan            only set options, don't actually scan
- -T, --test                 test backend thoroughly
- -h, --help                 display this help message and exit
- -v, --verbose              give even more status messages
- -V, --version              print version information

Options specific to device `mustek:/dev/sg0':
  Scan Mode:
    --mode Lineart|Halftone|Gray|Color [Gray]
        Selects the scan mode (e.g., lineart,monochrome, or color).
    --fast-gray-mode[=(yes|no)] [inactive]
        Scan in fast gray mode (lower quality).
    --resolution 72..600dpi (in steps of 1) [72]
        Sets the resolution of the scanned image.
    --depth 8|12 [inactive]
        Number of bits per sample, typical values are 1 for "line-art" and 8
        for multibit scans.
    --speed Slowest|Slower|Normal|Faster|Fastest [inactive]
        Determines the speed at which the scan proceeds.
    --source Flatbed [inactive]
        Selects the scan source (such as a document-feeder).
    --preview[=(yes|no)] [no]
        Request a preview-quality scan.
    --fast-preview[=(yes|no)] [no]
        Request that all previews are done in in the fastest (low-quality)
        mode. This may be a non-color mode or a low resolution mode.
  Geometry:
    -l 0..218mm [0]
        Top-left x position of scan area.
    -t 0..293mm [0]
        Top-left y position of scan area.
    -x 0..218mm [218]
        Width of scan-area.
    -y 0..293mm [293]
        Height of scan-area.
  Enhancement:
    --brightness -100..100% (in steps of 1) [0]
        Controls the brightness of the acquired image.
    --brightness-r -100..100% (in steps of 1) [inactive]
        Controls the brightness of the red channel of the acquired image.
    --brightness-g -100..100% (in steps of 1) [inactive]
        Controls the brightness of the green channel of the acquired image.
    --brightness-b -100..100% (in steps of 1) [inactive]
        Controls the brightness of the blue channel of the acquired image.
    --contrast -100..100% (in steps of 1) [inactive]
        Controls the contrast of the acquired image.
    --contrast-r -100..100% (in steps of 1) [inactive]
        Controls the contrast of the red channel of the acquired image.
    --contrast-g -100..100% (in steps of 1) [inactive]
        Controls the contrast of the green channel of the acquired image.
    --contrast-b -100..100% (in steps of 1) [inactive]
        Controls the contrast of the blue channel of the acquired image.
    --custom-gamma[=(yes|no)] [no]
        Determines whether a builtin or a custom gamma-table should be used.
    --gamma-table 0..255,...
        Gamma-correction table.  In color mode this option equally affects the
        red, green, and blue channels simultaneously (i.e., it is an intensity
        gamma table).
    --red-gamma-table 0..255,...
        Gamma-correction table for the red band.
    --green-gamma-table 0..255,...
        Gamma-correction table for the green band.
    --blue-gamma-table 0..255,...
        Gamma-correction table for the blue band.
    --quality-cal[=(yes|no)] [inactive]
        Do a quality white-calibration
    --halftone-size 8x8 coarse|8x8 normal|8x8 fine|8x8 very fine|6x6 
normal|5x5 coarse|5x5 fine|4x4 coarse|4x4 normal|4x4 fine|3x3 normal|2x2 
normal|8x8 custom|6x6 custom|5x5 custom|4x4 custom|3x3 custom|2x2 custom 
[inactive]
        Sets the size of the halftoning (dithering) pattern used when scanning
        halftoned images.
    --halftone-pattern 0..255 [inactive]
        Defines the halftoning (dithering) pattern for scanning halftoned
        images.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    mustek:/dev/sg0 mustek:/dev/scsi/host0/bus0/target6/lun0/generic


- -- 
I will not be pushed, filed, stamped, indexed, briefed, debriefed, or 
numbered!
My life is my own - No. 6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+0Loon/usgigAaLcRAgDuAJ4r5301xbzL8mPW/Ki0txouX506VACfTxlT
/T+yLoXYgjyATaKJREl30Bc=
=lqCe
-----END PGP SIGNATURE-----