[sane-devel] Sheet Feed scanner, saving DPI info
Billy Croan
Billy at croan.org
Tue Jan 16 03:50:21 GMT 2024
I have a Brother DS720D usb sheet feet scanner. You stick a page in and it
feeds a milimeter to hold it. Then you call scanimage and it sucks the
whole thing through and you get a file.
But I need the file to include DPI information for further processing.
The originals could be all different sizes. tiny gas receipts, envelopes,
super long walgreens receipts. seldom 8.5x11 because I use an ADF for that.
My sheet feed scanner is double sided, and I've been calling it thusly:
scanimage -d 'dsseries:usb:0x04F9:0x60E0' --format=jpeg -p -v --mode=Color
--resolution=300 --batch=$(date +%Y%m%d_%H%M%S)p%d.jpg --batch-count=2
--batch-print
And scanimage tells me:
scanimage: scanning image of size 2548x4199 pixels at 24 bits/pixel
p1 is the front and p2 is the rear. Obviously they scan at the same time.
The scanimage command "waits" for the first page to pull through, and the
second page is instant because its probably held in a buffer in the scanner.
What do I need to add to my commandline to make it scan as long as it takes
to pull the whole paper through???
Or to increase that max page length to something large, say 3 feet?
For width I guess I want to always scan full width. Just in case the paper
is oddly shaped and it gets wider towards the end.
Before it saves the file it needs to know the dimensions of the paper
because it has to write the DPI. And I won't know how long each sheet is
until I scan them through. I need the scanner to measure them in effect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20240115/364a26e2/attachment.htm>
More information about the sane-devel
mailing list