-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting the brightness and the contrast #114
Comments
Hi, sorry for long delay in response. sane-airscan implements brightness/contrast options sinse release 0.99.20, though it does it in software, If it doesn't work for you, please give me more detailed explanation, what is wrong with these options. |
I'm attaching two scans of the same image, one with the brightness level set to 500 and the other set to 1000 (the default). I'm setting the level on the scanner itself, I'm not doing any post-processing in software. For context, what you see in the image is the sea with some scattered clouds. With brigthness=1000 the clouds are far too bright and the details are lost, you can also see that in the histogram. There's no amount of post-processing that will restore that. The default brightness level is however ok for letters and other documents, so I don't think there's a good default. I change the brightness level depending on what I'm going to scan. |
Another issue is that this scanner can send the results in either raw format or with jpeg compression. sane-airscan uses always the latter but that can produce visible artifacts (see the 'T' letter on the images that I uploaded earlier). If you think that selecting the compression type is a feature worth adding I can open another ticket. |
OK, I understood. Will see what can I do with it. As my device doesn't support brightness/contrast settings in hardware, I will have to rely on you in testing.
Can you try to manually select raw format (similar to how you've manually set brightness)? sane-airscan will not unpack the returned image (will complain I/O error), but it can save it into the protocol trace file. I want to see this image file, to understand, how to unpack it. To enable protocol trace, uncomment the following lines in the
Protocol traces will be saved to the And I want to see the whole ScannerCapabilities too, not only the fragment you've attached before. |
Hi, I haven't had the time to rebuild sane-airscan, but I did a quick test by simply using CURL to send this to the scanner:
I can turn the output file into a Netpbm image simply by adding a header (the image is 150x250 pixels):
I'm attaching the raw image data and the capabilities. |
Hi,
I have an HP OfficeJet Pro 9010 series. The scanner works out of the box with sane-airscan, but I noticed when scanning photos that the resulting images are too bright and the colors are often burned.
The scanner allows adjusting the brightness level but it seems that the default value is too high. Lowering it produces better results in my case. Unfortunately this backend does not seem to allow setting that value.
It is possible however to do it using eSCL, ScannerCapabilities reports this:
And I verified that manually adding e.g.
<scan:Brightness>500</scan:Brightness>
to the query does the job.The text was updated successfully, but these errors were encountered: