[sane-devel] Nikon LS50/5000

2005-11-10 Thread Ariel Garcia
Hi Spiro,

answering your two last mails here, hope it is not too mixed up

 the package I use is: media-gfx/xsane from http://www.xsane.org/

yes, thanks, i had seen it long ago and already forgotten ;-(
Now i've been testing it with the LS50 and it worked fine, it is quite a 
nice frontend. (tested with a slide, 8  14 bits depth)

  If you get an error there you should enable debugging output and send
  us that output. Something like this will be helpful:
 
  export SANE_DEBUG_SANEI_USB=4
  export SANE_DEBUG_COOLSCAN2=255
  scanimage  photo.pnm

 It all points to my Epson scanner even if both scanners are turned on.
 So, I am not able to test it this way. Please provide more info so I can
 directly scan with the Nikon scanner.

Henning told you already how to call it,

 scanimage -L
 device `epson:libusb:001:002' is a Epson GT-9300 flatbed scanner
 device `coolscan2:usb:libusb:001:005' is a NikonLS-5000 ED  
 film scanner
 So, the command would be scanimage -d coolscan2:usb:libusb:001:005 
 photo Which reproduced the same exact error, which is:
 scanimage: sane_start: Error during device I/O

 So, we are back to square one. Any idea on this?

please, don't get upset so fast, the answer was in my previous mail  ;-)
Please do
export SANE_DEBUG_SANEI_USB=255
export SANE_DEBUG_COOLSCAN2=255
scanimage -d coolscan2:usb:libusb:001:005  photo.pnm

and send me the debugging output you'll get.
If the error you get is with the film feeder adapter, please also test it 
with the mounted slide adapter.


 Well, this is not sufficent for allowing a user to fully utilize what
 was purchased (in my openion). I purchased this device becaue of all its
 features. Leaving some out would not match purchasing goals.
 For sure you know this scanner better than I do just because you are
 deveoloping the driver, but I wish to ask you a question then: How come
 VieScan allows all customizations?

Please, again, don't get upset with the sane developers which do it for 
free/pleasure/etc. You can always go to the manufacturer and request them 
to provide you with a linux software having all the same features as in 
windows :-)

The coolscan2 sane backend supports most if not all the scanner (ie, 
_hardware_) features (of course, something is failing in your case, but 
that's another issue). All the other customizations as you call them 
(dust and scrcatch removal based on the hardware IR data, ROC, GEM, DEE) 
are _software_ functions, not a feature of this particular scanner, so you 
could have them in xsane or other frontends, 
it is just that somebody (with the right knowledge) has to write the 
code... it is probably not trivial to get good results, so experience in 
the subject counts here.
It does not make sense to have these software features in the nikon sane 
backend, because they are general to many scanners so that code would go 
either to a frontend like xsane or even better in a library.

Note that even if there is no direct support for the ICE, ROC, GEM 
functions , you can (try to) replace that with the Gimp and some manual 
work... somebody wrote a Gimp plugin which is able to clean the images 
using the IR data from sane:

http://lists.alioth.debian.org/pipermail/sane-devel/2004-December/012759.html

And the other two functions are just color enhancement and grain 
reduction (some blur filter could give you something similar)

BTW, xsane can be used as a gimp plugin, so you can scan directly from 
within gimp and run the dust-off pluging/color corrections directly there 
also.

 me. I hope sane or your development will bring the software to a level
 where full customizations and infrared scan become reality.

try the gimp plugin

 came to the conclusion that VewScan is the only application (as of now)
 that is capable of running this specific device. I was/am counting on
 SANE because I like the idea to use it 

well, if you have a relatively big scanning project and you already spent 
1000+ bucks in the scanner, it could be worth spending 50 more in a piece 
of software which could allow you a more time-efficient work or higher 
quality output with the same effort. From what people say, vuescan seems 
to be quite nice, supports lots of scanners, and is in many cases better 
than the manufacturer provided programs.

 and am only thankfull to Ariel 
 and whoever worked with Ariel for spending time for development.

no, you should be thankful to Andras who wrote the coolscan2 backend and to 
all the sane developers who wrote the framework/frontends/libraries also. I 
did just a few patches.

 far, after I will solve my device I/O failure, what does SANE offer for
 this specific device? 

you get the full color depth (14 bits) and full res 4000dpi scans. You get 
the IR channel, autofocus, you can select the focus point, etc (and if 
something does not work it can be fixed, or if it is not yet implemented 
it can probably be supported more or less easily :-)

 I also offer my time and hardware for allowing some 

[sane-devel] Nikon LS50/5000

2005-11-09 Thread Spiro Angeli
Hi Ariel,

Here are some answers:

1) Spiro
 When I run Xsane, I get the option to choose between the two scanners I
 have (Epson and Nikon) and get a new windows with default settings.

 I try to scan, and get this error:
 Failed to start scanner: Error during device I/O

Ariel
 i never saw Xsane, or are you referring to xscanimage?. xscanimage kind of 
 works for me, ie,  i get a scanned file ok, but the preview does not get 
 the right scales, and the LUT tabs show me just crap inside (but this of 
 course has nothing to do with the coolscan backend!)

the package I use is: media-gfx/xsane from http://www.xsane.org/
Here is portage link: http://packages.gentoo.org/search/?sstring=Xsane

2) Ariel
 try scanimage from the commandline.
 If you get an error there you should enable debugging output and send us 
 that output. Something like this will be helpful:

 export SANE_DEBUG_SANEI_USB=4
 export SANE_DEBUG_COOLSCAN2=255
 scanimage  photo.pnm

It all points to my Epson scanner even if both scanners are turned on. So, I 
am not able to test it this way. Please provide more info so I can directly 
scan with the Nikon scanner.

3) Spiro
 there a plae to choose for those settings, and redice, and all those
 nikon settings?

Ariel
 no, there is support for reading the infrared channel data but the driver 
 will NOT clean up the image based on that data, it is available for you to 
 use it. But I don't know how one can process that in linux afterwards. 
 Anybody?

 As i told you before, many of the features advertised for the scanner are 
 actually _software_ features provided by the Windows drivers. You won't 
 get that with sane. Other people in this list will perhaps know how to 
 imitate those features.

Well, this is not sufficent for allowing a user to fully utilize what was 
purchased (in my openion). I purchased this device becaue of all its 
features. Leaving some out would not match purchasing goals.
For sure you know this scanner better than I do just because you are 
deveoloping the driver, but I wish to ask you a question then: How come 
VieScan allows all customizations?

As a matter of fact I was already ready to start my project with this 
application but preferred to wait and see if I could do the same with sane 
(not because of the cost of this package). So I guess sane at this stage is 
not ready for my project. Please confirm me this so that I start it in 
another way.

Also, if you wish for debugging suggest me how to solve my issue with failed 
connection this would be great. Ariel, I am still at your disposal for 
testing and debugging for as much as Linux skills assist me. I hope sane or 
your development will bring the software to a level where full customizations 
and infrared scan become reality.

For now take care,
Spiro



[sane-devel] Nikon LS50/5000

2005-11-09 Thread Spiro Angeli
Hi Henning and thank you for your reply.

1) 
 man scanimage
 scanimage --help
 scanimage -d coolscan2  photo.pnm

scanimage -L
device `epson:libusb:001:002' is a Epson GT-9300 flatbed scanner
device `coolscan2:usb:libusb:001:005' is a NikonLS-5000 ED   film 
scanner
So, the command would be scanimage -d coolscan2:usb:libusb:001:005  photo
Which reproduced the same exact error, which is:
scanimage: sane_start: Error during device I/O

So, we are back to square one. Any idea on this?

2)

  Well, this is not sufficent for allowing a user to fully utilize what was
  purchased (in my openion). I purchased this device becaue of all its
  features. Leaving some out would not match purchasing goals.

 So you purchased this device with full SANE support? I guess you
 should ask the vendor to provide this full support.
Obviously not. I did only purchase this device, independently from which 
application to run. Thou, I did my research prior to purchasing it and came 
to the conclusion that VewScan is the only application (as of now) that is 
capable of running this specific device. I was/am counting on SANE because I 
like the idea to use it and am only thankfull to Ariel and whoever worked 
with Ariel for spending time for development.

3)

  For sure you know this scanner better than I do just because you are
  deveoloping the driver, but I wish to ask you a question then: How come
  VieScan allows all customizations?

 Perhaps the Vuescan author just implemented all the features in
 software? You are free to do so in SANE also, i.e. it's not impossible
 or forbidden, it just hasn't been done yet in this case.
Most likely it is a software feature which needs development too. So far, 
after I will solve my device I/O failure, what does SANE offer for this 
specific device? I do not mind waiting thou my photo project must start 
elsewhere.

I also offer my time and hardware for allowing some testing for as much as I 
am capable of. Obviously if Ariel or whoever is in need of and/or decides to.

So, please someone if possible advice me on how to solve this I/O issue.

thank you for now,
Spiro


[sane-devel] Nikon LS50/5000

2005-11-02 Thread Ariel Garcia
Hi,

 finally I made your patch to work and compiled sane-backends with it. I
 am using version sane-backends-1.0.15

no problem, the coolscan2 driver didn't change since a while ago

 When I run Xsane, I get the option to choose between the two scanners I
 have (Epson and Nikon) and get a new windows with default settings.

 I try to scan, and get this error:
 Failed to start scanner: Error during device I/O

i never saw Xsane, or are you referring to xscanimage?. xscanimage kind of 
works for me, ie,  i get a scanned file ok, but the preview does not get 
the right scales, and the LUT tabs show me just crap inside (but this of 
course has nothing to do with the coolscan backend!)

try scanimage from the commandline.
If you get an error there you should enable debugging output and send us 
that output. Something like this will be helpful:

export SANE_DEBUG_SANEI_USB=4
export SANE_DEBUG_COOLSCAN2=255
scanimage  photo.pnm

For a real scan, ie, to get a nice looking image, you will need to fiddle 
with the gamma values of the different colors (--green-gamma-table   etc), 
although 
scanimage --autofocus --resolution 1000 --red-exposure 4000  
 --green-exposure 4000 --blue-exposure 3000  photo.pnm
gives some starting point

 Also, as my scanner has different media (slides, negatives, etc,) is

i didn't test the negative feeder, but the slide adapter

 there a plae to choose for those settings, and redice, and all those
 nikon settings?

no, there is support for reading the infrared channel data but the driver 
will NOT clean up the image based on that data, it is available for you to 
use it. But I don't know how one can process that in linux afterwards. 
Anybody?

As i told you before, many of the features advertised for the scanner are 
actually _software_ features provided by the Windows drivers. You won't 
get that with sane. Other people in this list will perhaps know how to 
imitate those features.

Cheers, Ariel


[sane-devel] Nikon LS50/5000

2005-11-01 Thread Spiro Angeli
Ariel,

finally I made your patch to work and compiled sane-backends with it. I am 
using version sane-backends-1.0.15
When I run Xsane, I get the option to choose between the two scanners I have 
(Epson and Nikon) and get a new windows with default settings.

I try to scan, and get this error:
Failed to start scanner: Error during device I/O

Also, as my scanner has different media (slides, negatives, etc,) is there a 
plae to choose for those settings, and redice, and all those nikon settings?

Thank you,
Spiro


[sane-devel] Nikon LS50/5000

2005-10-30 Thread Spiro Angeli
Hi Ariel,

thank you so much for your effort.

I implemented the patch, under Gentoo and got this error:

# emerge sane-backends
Calculating dependencies ...done!
 emerge (1 of 1) media-gfx/sane-backends-1.0.15 to /
 md5 files   sane-backends-1.0.15.ebuild
 md5 files   sane-backends-1.0.13-r3.ebuild
 md5 files   sane-backends-1.0.15-r1.ebuild
 md5 files   sane-backends-1.0.15-r2.ebuild
 md5 files   sane-backends-1.0.15-r3.ebuild
 md5 files   sane-backends-1.0.16-r1.ebuild
 md5 files   sane-backends-1.0.16-r2.ebuild
 md5 files   sane-backends-1.0.15.ebuild.bk
 md5 files   files/digest-sane-backends-1.0.15
 md5 files   files/canoscan-focus.patch
 md5 files   files/cs2-ls50-full.patch
 md5 files   files/lide25.patch
 md5 files   files/digest-sane-backends-1.0.13-r3
 md5 files   files/digest-sane-backends-1.0.15-r1
 md5 files   files/digest-sane-backends-1.0.15-r2
 md5 files   files/libusbscanner-device-r1.patch
 md5 files   files/libusbscanner-device.patch
 md5 files   files/linux_sg3_err.h
 md5 files   files/digest-sane-backends-1.0.15-r3
 md5 files   files/sane-backend-1.0.15-gt68xx-update67.patch
 md5 files   files/digest-sane-backends-1.0.16-r1
 md5 files   files/digest-sane-backends-1.0.16-r2
 md5 src_uri  sane-backends-1.0.15.tar.gz
 md5 src_uri  sane-backends-1.0.15-brothermfc.patch.bz2
 Unpacking source...
 Unpacking sane-backends-1.0.15.tar.gz 
to /var/tmp/portage/sane-backends-1.0.15/work
 Unpacking sane-backends-1.0.15-brothermfc.patch.bz2 
to /var/tmp/portage/sane-backends-1.0.15/work
 Unpacking sane-backends-1.0.15-brothermfc.patch.bz2 
to /var/tmp/portage/sane-backends-1.0.15/work
 * Applying canoscan-focus.patch ...
 
[ ok ]
 * Applying cs2-ls50-full.patch ...

 * Failed Patch: cs2-ls50-full.patch !
 *  ( /usr/portage/media-gfx/sane-backends/files/cs2-ls50-full.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/sane-backends-1.0.15/temp/cs2-ls50-full.patch-15359.out


!!! ERROR: media-gfx/sane-backends-1.0.15 failed.
!!! Function epatch, Line 363, Exitcode 0
!!! Failed Patch: cs2-ls50-full.patch!
!!! If you need support, post the topmost build error, NOT this status 
message.


Do you happend to know anything about this or did I do something wrong?

thank you,
Spiro