[sane-devel] Fw: Canon DR-2580C - size recognition problems

m. allan noah kitno455 at gmail.com
Mon Oct 31 19:43:42 UTC 2011


ok. if you download the sane-backend source, and edit
backend/canon_dr.c, you will find the function init_model(). In there
is a section for your scanner. Add this line:

s->duplex_offset = 432;

Then you should be able to configure and make the software. You don't
need to make install. Instead, just copy
 backend/.libs/libsane-canon_dr.so.1.0.22 over the version provided by
your distro. Make sure you use the same file name, as there are
symlinks which point to it.

That should cause the backend to strip off the black line from the top
of the back side.

allan

On Mon, Oct 31, 2011 at 3:28 PM, Max Voit <max.voit+mlsa at with-eyes.net> wrote:
> Well, it is indeed far better with the bottom not cut off.
>
> I used
>  scanimage --mode Gray --source "ADF Duplex" --resolution 200
>  --batch-count=2 --batch=s%d.pnm --page-height 300 --page-width 240 -x
>  240 -y 300 --rollerdeskew=yes --swcrop=yes --swdeskew=no
> output:
>  scanimage: rounded value of page-height from 300 to 299.999
>  scanimage: rounded value of page-width from 240 to 216.042
>  scanimage: rounded value of br-x from 240 to 216.042
>  scanimage: rounded value of br-y from 300 to 299.999
>  Scanning 2 pages, incrementing by 1, numbering from 1
>  Scanning page 1
>  Scanned page 1. (scanner status = 5)
>  Scanning page 2
>  Scanned page 2. (scanner status = 5)
> to generate the images attached. They are scaled down by factor 4 x 4,
> means:
>
> resolution:                             200 ppi
> image-dimensions:                       1649 px x 2361 px
> media-dimensions:                       210 mm x 297 mm
> scan-dimensions:                        216 mm x 300 mm
> height of black bar bottom front side:  77 px
> height of black bar top back side:      72 px
>
> kind regards,
> Max
>
> Am Mon, 31 Oct 2011 14:18:21 -0400
> schrieb "m. allan noah" <kitno455 at gmail.com>:
>
>> what is the height in pixels of the waste data at the top of the page,
>> and what resolution did you scan at?
>>
>> allan
>>
>> On Mon, Oct 31, 2011 at 2:13 PM, Max Voit
>> <max.voit+mlsa at with-eyes.net> wrote:
>> > Ah, ic. I'll give it a try and given i find some time take a look at
>> > the source.
>> >
>> > Thank you very much for your (indeed fast) help.
>> >
>> > Max
>> >
>
>



-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list