Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Control flatbed scanner

by zzspectrez (Hermit)
on Aug 14, 2005 at 05:54 UTC ( [id://483665]=perlquestion: print w/replies, xml ) Need Help??

zzspectrez has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone had any luck/experience interfacing with a flatbed scanner using perl?

I'm looking for something that would work with windows, perhaps twain.

The only thing I have been able to find is Win32::Scanner::EZTWAIN which unfortunately needs an external dll and the documentation mentions it is buggy.

Any pointers?

zzSPECTREz

Replies are listed 'Best First'.
Re: Control flatbed scanner
by MrCromeDome (Deacon) on Aug 14, 2005 at 06:31 UTC
    Check out the SANE project at http://www.sane-project.org. It has backends for many different platforms and a whole lot of frontend utilities too. I'm not sure if they have a Perl interface, but they have command-line utilities, and you can sure use Perl to drive those!

    FYI, using TWAIN is like shooting at a moving target. Yeah, there's a standard, but it's reasonably loose, and not all TWAIN drivers have all the features you'd like them to have. I'm fighting with my own battles with TWAIN in another development environment. . .

    Good luck!
    MrCromeDome

      Ok, this looks promising. It looks like their is minimal support for compiling sane under CYGWIN for windows. Currently, the compile fails due to lack of libusb. So I found a port of libusb-win32 but it says it doesnt support CYGWIN. :( Google searches show some sucess with getting the above to work together, so I will keep trying.

      If I get it working, I will come back with an update.

      Have you by chance got sane working under windows with a usb scanner?

      zzSPECTREz
        Unfortunately, no. It's been a while since I've had occasion to play with SANE, but I really enjoyed working with it when I did.

        My Windows experiences with TWAIN have all involved proprietary drivers and managers :( Given some problems my current project is facing, I might have to change that.

        Good luck :) Please do post an update when you get a chance.
        MrCromeDome

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://483665]
Approved by sk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-29 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found