<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><p style="margin: 0;">allan:</p><p style="margin: 0;"><br></p><p style="margin: 0;">I tried to fix it out, I can know this brightness => protcol map from Usbpcap on Windows OS. </p><p style="margin: 0;"><br></p><p style="margin: 0;">0: 0x80</p><p style="margin: 0;">1: 0x81</p><p style="margin: 0;">-1: 0x7f</p><p style="margin: 0;">-100: 0x01</p><p style="margin: 0;">100: 0xff</p><p style="margin: 0;"><br></p><p style="margin: 0;">sb[0x16] and sb[0x17] is sync.</p><p style="margin: 0;"><br></p><p style="margin: 0;">to sane-backends, I can see this</p><p style="margin: 0;">#define set_WD_threshold(sb, val) sb[0x16] = val</p><p style="margin: 0;">there miss sb[0x17], so I try to force to 0x80(0). I added this in canon_dr.c</p><p style="margin: 0;"><br></p><p style="margin: 0;"> desc1[0x16] = 0x80;</p><p style="margin: 0;"> desc1[0x17] = 0x80;</p><p style="margin: 0;"><br></p><p style="margin: 0;">with SANE_DEBUG_CANON_DR, I can see brightness number is cool from log. but the image from scanner is also bad. I have no idear for it. I thought it will work fine when I set the brightness value like Windows OS driver. but It wasn't.</p><p style="margin: 0;"><br></p><p style="margin: 0;">kangear</p><p style="margin: 0;"><br></p><p style="margin: 0;"><br></p><p style="margin: 0;"><br></p><p style="margin: 0;"><br></p><p>At 2020-03-21 17:45:49, "Tony" <kangear@163.com> wrote:</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;">Hi allan:</div><div style="margin: 0;"><br></div><div style="margin: 0;">there is picture, win7 vs 1.0.24 vs 1.0.29</div><div style="margin: 0;"><a href="https://drive.google.com/file/d/19-ahQYcj6TK9ZPtdi2Eh9-V3nImeEzys/view">https://drive.google.com/file/d/19-ahQYcj6TK9ZPtdi2Eh9-V3nImeEzys/view</a></div><div style="margin: 0;">1.0.24 only little red;</div><div style="margin: 0;">1.0.29 only little brightness problem.</div><div style="margin: 0;"><br></div><div style="margin: 0;">And I want to try fix it, if you can help me. I also do some <span style="font-family: arial; white-space: pre-wrap;">reverse engineered. :P</span></div><div style="margin: 0;"><span style="font-family: arial; white-space: pre-wrap;"><br></span></div><div style="margin: 0;"><span style="font-family: arial; white-space: pre-wrap;">tony</span></div><pre><br>At 2020-03-20 08:19:05, "m. allan noah" <kitno455@gmail.com> wrote:
>Thanks for the report. I've been unable to correct the calibration
>issues on these scanners in the past, as all the calibration code is
>reverse engineered. It would be helpful if someone else could pick it
>up and try to improve it.
>
>allan
>
>On Thu, Mar 19, 2020 at 10:58 AM Tony <kangear@163.com> wrote:
>>
>> Hi all, I tried to test Canon P215II, backend version: 1.0.29.
>>
>> ./scanimage --format=png > test.png
>> > test.png is gray;
>>
>> ./scanimage --format=png --mode=Color > test.png
>> > test.png is color, but seems brightness high. The image looks like adjust brightness to max effect on Windows OS;
>>
>> ./scanimage --format=png --mode=Color --brightness=-100 > test.png
>> > test.png always like that, Maybe brightness option has no effect for now.
>>
>> And scan speed is slow.
>>
>> that's all. if you need more, just email me. I'll try to be the best tester. :P
>>
>> kangear
>
>
>
>--
>"well, I stand up next to a mountain- and I chop it down with the edge
>of my hand"
</pre></div></blockquote></div>