Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EZTWAIN Classic - Bypass Dialog Windows?

Status
Not open for further replies.

Kirsle

Programmer
Joined
Jan 21, 2006
Messages
1,179
Location
US
I found this module the other day, Win32::Scanner::EZTWAIN which uses the EZTWAIN Classic library ( ), which is the free version of EZTWAIN, and comes in a DLL format.

The module uses Win32::API to load the DLL and call its methods, but all the "acquire" methods seem to pop up a GUI window to take snapshots or scans from the TWAIN devices. I looked into the EZTWAIN library's documentation for more methods, but I haven't found one yet that can capture a picture without using the GUI (i.e. a completely automated process).

Does anybody have any experience with EZTWAIN Classic and can help me out? One of the main things I want to do with it is create a webcam program that can take pictures periodically, like every 5 or 10 seconds, and upload them over FTP to a web server. But since the acquire methods seem to use a GUI for me to manually snap the pictures, this doesn't seem very possible.

Any help would be appreciated.

-------------
Kirsle.net | Kirsle's Programs and Projects
 
Win32::GUITest ?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Can you check your webcam via a browser? If so, you could open up many ways to accomplish this (without opening the browser).

Let us know your results!

X
 
PaulTEG> Win32::GuiTest could accomplish having a program be able to click the buttons and stuff automatically, but it'd also have to learn to share the computer with people who actually have things to accomplish. ;-)

Xaqte> The browser would be one medium to view the program's output. But what the program should be doing is generating bitmaps from the input device (eg. the webcam), converting them to jpeg format with GD or ImageMagick, and uploading them via FTP.

Back to the Win32::GuiTest thing: it seems kind of inefficient for a program to resort to doing this. The most efficient ways a program can run is when it does everything automatically, being self-contained. When it has to rely on separate programs (a GUI which normally waits for user input I would still classify as a separate program), there's a major efficiency problem there.

It just seems like any self-respecting TWAIN library should have functions to just go right ahead and capture an image, not pop up some kind of dialog box with a "Take a snapshot" button on it and rely on the user. So I'm remaining optimistic that EZTWAIN should have a way to do this.

-------------
Kirsle.net | Kirsle's Programs and Projects
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top