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

I need to scan images into a database from a Fujitsu scanner.

I already have a perl DBI interface installed using a perl script to display images pulled from a database.

I am looking for an easy way to scan images into a database using perl - there is a standard driver called TWAIN that other languages (java Python)use, but I can not find any module that will do this using Perl.

Any suggestions?

Writing my own twain interface package is out of my league.

TIA

Replies are listed 'Best First'.
Re: Can PERL take images from a scanner?
by belg4mit (Prior) on Jul 29, 2002 at 19:09 UTC
    You don't say anything about what OS you are on. If you were a glutton for punishment, and on win32, you could interface with the existing twain libraries. If you are on linux/un*x, several libraries and applications exist (UPDATE: such as SANE). I'd check http://freshmeat.net and not be afraid to bring in a little outside help for the heavy-lifting.

    --
    perl -pew "s/\b;([mnst])/'$1/g"

      If you were more of a glutton for punshment, like me, you could write a driver for it yourself, in perl. But my point was to say that you could use TWAIN via SANE via Perl.


      Confession: It does an Immortal Body good.

Make external call?
by cebrown (Pilgrim) on Jul 29, 2002 at 19:04 UTC
    If your mission is simply to get something done (rather than get it done in pure Perl), you could just do most of it in Perl, then call out to a simple Java application which would run the TWAIN stuff.

    This would probably incur some performance overhead but if you are working real-time with a scanner, you wouldn't even notice it.