messing wioth scanners

This is a follow up from a comment in https://forums.opensuse.org/showthread.php/533211-Epson-network-scanner

It got me wondering what I might do with a Linux/Sane scanner and I’ve been dabbling (I won’t call it programming) a bit using JFreeSane:https://github.com/sjamesr/jfreesane . Lot’s to do still and I know it would only work with scanners using mm (rather than pixel) dimensions. Only external destination at the moment is to GIMP and png but I think it’s close enough for now and at least works with both the Canon Canoscan 9000F MK 2 and Epson Perfection Photo V330 here. Needs to connect via network (not local usb)

zip file with the jar, etc at http://jonbanjo.com/temp/jfscan.zip if any one is interested.

Was getting a bit carried away with myself yesterday, a couple of pints and a post seemed a good idea… But having done that, I’ll comment where I think this effort would have advantages to me over what exists:

(having done a bit with destinations today). I can set up my own external programs.

I can easily set up a new “preset” using which ever current settings are in place and from there on would only need to select say “A4 photo” from a combo to use the settings I need.

I can write a simple (Groovy) script for a task, eg.

int slides = scanner.getInt("Slides to scan (1-4)", 1, 4);
  scanner.setSource("Transparency Unit");
  scanner.setResolution(1200);
  for (int i=0; i<slides; i++){
     int top = i * 56 + 31;
     int btm = top + 38;
     scanner.setRect(89, top, 127, btm);
     scanner.scan();
 }

Once saved, I only have to select “Canon 900F 127 slides” from a combo and I can have up to 4 of our old slides scanned. (easier than trying to select regions for scans or having to cut the portions wanted using an image editor).

Oh well, keeps me amused I suppose although, for home use, this does stand a chance of being used in preference to say xsane or scanlite. Anyway, having tried (probably badly) toi explaning yesterdays post, I won’t bore others further.