This acticle gives a brief introduction about TWAIN scanning protocol.
What is TWAIN?
Is it Technology Without An Interesting Name? Come on, you know that’s just a backronym joke According to the definition from Wikipedia, TWAIN is:
… an applications programming interface (API) and communications protocol that regulates communication between software and digital imaging devices, such as image scanners and digital cameras.en.wikipedia.org/wiki/TWAIN
Basically, TWAIN is a scanning protocol connecting scanners and applications on personal computers. By providing standard interface, TWAIN allows applications to acquire images from TWAIN compliant devices (scanners, digital cameras, etc.)
TWAIN ArchitectureTWAIN communication consists of three parts: the application, the Source Manager, and the Source.
Or, take a closer look:
In order to get images from the Device Layer, Application need to talk with Source Manager, as shown from the above diagram. To communicate with Source Manager, Application can use API hook DSM_Entry() provided by TWAIN. And Source Manager will call DS_Entry() to talk to Source. All TWAIN’s operation, such as resolution changes, color adjustment, is based on these two function calls DSM_Entry() and DS_Entry().
TWAIN is supported on Macintosh OS as well as Microsoft Windows. In Windows system, TWAIN Source Manager is in the form of a DLL, delivered with other Windows system files. For 32-bit systems, it is TWAIN_32.DLL, and for 64-bit systems, it is TWAINDSM.DLL .
I hope this post can help you with a general understanding about TWAIN scanning protocol. If you need any specific information, please just let me know via comment or email.
P.S. For sure, besides TWAIN, there are some other scanning protocols available in the market. You can check it out at Document Scanning: TWAIN, WIA, ISIS or SANE?
How to Read Barcodes Online from a Web Application
Barcodes are popular today. So does the web technology. This article offers an step-by-step tutorial to integrate barcodes reading into a web application.How to Make Java Barcode Reader with Dynamsoft Barcode SDK
This article gives an introduction about how to make a Java barcode reader based on Dynamsoft Barcode SDK.Scanner Types and Software Interface
This article gives a bried introduction about scanner types and the commonly used software interfaces.