[sane-devel] Avision AV220 Questions (LED digit, Buttons, Backends, Paper size)
Crypto
crypto at online.de
Thu Feb 5 11:19:00 UTC 2009
On Sunday 01 February 2009 22:34:10 Jeffrey Ratcliffe wrote:
> 2009/2/1 Crypto <crypto at online.de>:
> > 2.) In scanning software such as gscan2pdf etc. there is an option to set
> > contrast and brightness. Brightness goes from -100 (I suppose to make
> > scans darker) to +100 (makes scans brighter). I can set this option to
> > positive values and get brighter scans, but when I attempt to get darker
> > scans I get an error message "Unknown message: Argument "" isn't numeric
> > in subtraction (-) at /usr/bin/scanimage.pl line 357". This also happens
> > if I use different backends for scanning such as scanadf.pl. In
> > scanadf.pl it's line 380 but same error otherwise.
>
> This is a bug in gscan2pdf. If you post the output for
>
> scanimage --help
>
> I'll try and reproduce it.
>
> Regards
>
> Jeff
Jeff,
sorry it took me a bit to test.
scanimage --help gives me:
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write PNM image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options
(e.g. --device-name=epson).
-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
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-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
-B, --buffer-size change default input buffersize
-V, --version print version information
Options specific to device `avision:libusb:001:004':
Scan mode:
--mode Lineart|Dithered|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--resolution 50..600dpi (in steps of 1) [150]
Sets the resolution of the scanned image.
--speed 0..4 (in steps of 1) [inactive]
Determines the speed at which the scan proceeds.
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--source ADF Front|ADF Back|ADF Duplex [ADF Front]
Selects the scan source (such as a document-feeder).
Geometry:
-l 0..216mm [0]
Top-left x position of scan area.
-t 0..362mm [0]
Top-left y position of scan area.
-x 0..216mm [216]
Width of scan-area.
-y 0..362mm [362]
Height of scan-area.
--overscan-top 0..4mm [0]
The top overscan controls the additional area to scan before the paper
is detected.
--overscan-bottom 0..4mm [0]
The bottom overscan controls the additional area to scan after the
paper end was detected.
--background-lines 0..50pel [0]
The background raster controls the additional background lines to scan
before the paper is feed thru the scanner.
Enhancement:
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
--quality-scan[=(yes|no)] [yes]
Turn on quality scanning (slower but better).
--quality-cal[=(yes|no)] [yes]
Do a quality white-calibration
--gamma-table 0..255,... [inactive]
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.
--exposure 0..1000% (in steps of 1) [inactive]
Manual exposure adjustment.
--infra-red[=(yes|no)] [inactive]
Enable infra-red scan mode.
--multi-sample[=(yes|no)] [inactive]
Enable multi-sample scan mode.
--frame 0..0 [inactive]
Selects the number of the frame to scan
--power-save-time <int> [15]
Allows control of the scanner's power save timer, dimming or turning
off the light.
--nvram-values <string> [Vendor: AVISION
Model: AVISION AV220
Firmware: 1.00
Serial: TW1062E1M7300137
Manufacturing date: 2006-2-22
First scan date: 2006-7-15
ADF simplex scans: 2966]
Allows access obtaining the scanner's NVRAM values as pretty printed
text.
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
List of available devices:
avision:libusb:001:004
I have tried to use scanimage.pl using the --brightness option, which gives me
the error I described:
pucki71 at pucki:~$ scanimage.pl --brightness -100
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanimage.pl line
357.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanimage.pl line
357.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanimage.pl line
357.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanimage.pl line
357.
scanimage.pl: option --brightness: index 4 out of range [0..4]
scanimage itself reports no error:
pucki71 at pucki:~$ scanimage --brightness -100
scanimage: sane_start: Document feeder out of documents
(which is fine because I indeed there were no documents in feeder).
So I guess not gscan2pdf has a bug but scanimage.pl and scanadf.pl seem to
have.
scanadf.pl gives me:
pucki71 at pucki:~$ scanadf.pl --brightness -100
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanadf.pl line 380.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanadf.pl line 380.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanadf.pl line 380.
Argument "" isn't numeric in subtraction (-) at /usr/bin/scanadf.pl line 380.
scanadf.pl: option --brightness: index 4 out of range [0..4]
which is the error I reported.
Does this give You a clue about what is going wrong?
What is the difference in using scanimage.pl vs. scanimage and using
scanadf.pl vs. scanadf?
Thanks for Your fast reply.
Kind regards,
Crypto.
More information about the sane-devel
mailing list