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

2011-11-01 Thread Max Voit
Increased to 42. Seems to be alright, as far as i can see. Max Am Mon, 31 Oct 2011 19:21:14 -0400 schrieb m. allan noah kitno455 at gmail.com: No, it's detected correctly. Can you increase the value of BUILD near the top of the file, and make and copy again? then get another log. I wish to

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

2011-11-01 Thread m. allan noah
I've attached a patch which should address the issue, by making the side of the padding configurable. I've not tested it at all, and it may not even apply cleanly to the version you are using. But, it's short, so you should be able to manually add it. allan On Mon, Oct 31, 2011 at 8:11 PM, m.

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

2011-11-01 Thread Max Voit
Awesome! Got really good scans now. Maybe the front side starts a little early (hard to determine exactly, the rotation at the other scans may be responsible for having the offset wrong), about 1 mm but that's all ok to me. Today I'm out of time and can't do further finetuning, but as soon as I

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

2011-11-01 Thread m. allan noah
I will commit the current patch. we can adjust the offset value later. allan On Tue, Nov 1, 2011 at 3:05 PM, Max Voit max.voit+mlsa at with-eyes.net wrote: Awesome! Got really good scans now. Maybe the front side starts a little early (hard to determine exactly, the rotation at the other

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

2011-11-01 Thread Max Voit
There you go. Were created at the time the previous log was. Command was SANE_DEBUG_CANON_DR=15 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 --swcrop=no output3 Scaled down by factor 4 x 4, as the

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

2011-10-31 Thread Max Voit
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 PS: Sorry, lost the last two messages to the list; see citations. Am Mon, 31 Oct 2011 14:01:03 -0400 schrieb m. allan noah kitno455 at gmail.com: The deskew

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

2011-10-31 Thread m. allan noah
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

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

2011-10-31 Thread Max Voit
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

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

2011-10-31 Thread m. allan noah
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,

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

2011-10-31 Thread Max Voit
Had a look at the debug-log with SANE_DEBUG_CANON_DR=15, see attachment. Am I suspecting right that it is recognized as the wrong model, i.e. DR-2050? Max On Mon, 31 Oct 2011 22:27:11 +0100 Max Voit max.voit+mlsa at with-eyes.net wrote: seems debian did some strange things i don't understand.

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

2011-10-31 Thread Max Voit
seems debian did some strange things i don't understand. Finally build the whole package anew and installed it, otherwise(with the way described, same version as the installed package) the scanner would not be recognized. Well, it didn't work. The black bar at the top of the back side is still

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

2011-10-31 Thread m. allan noah
No, it's detected correctly. Can you increase the value of BUILD near the top of the file, and make and copy again? then get another log. I wish to make sure we are actually running the modified code. allan On Mon, Oct 31, 2011 at 5:34 PM, Max Voit max.voit+mlsa at with-eyes.net wrote: Had a

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

2011-10-31 Thread m. allan noah
hmm, send me two images like you did before. allan On Mon, Oct 31, 2011 at 7:42 PM, Max Voit max.voit+mlsa at with-eyes.net wrote: Increased to 42. Seems to be alright, as far as i can see. Max Am Mon, 31 Oct 2011 19:21:14 -0400 schrieb m. allan noah kitno455 at gmail.com: No, it's

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

2011-10-31 Thread m. allan noah
Grr- this machine seems to work in reverse from all the others. the back side is padded instead of the front. I shall have to think about that... allan On Mon, Oct 31, 2011 at 8:03 PM, Max Voit max.voit+mlsa at with-eyes.net wrote: There you go. Were created at the time the previous log was.