How to Control Scanners in Software Programs

Last Updated on

Hardware devices such as scanners usually come with a driver and native desktop program to work with the device. However, if you want to control these the scanner in an existing desktop application or a web application, you need to learn about the underlying protocals and build a scanner program from scratch. Another option would be employ a third-party scanner program.

How to control devices via scanner programming

To enable developers to easily embed documents scanning into their software, Dynamsoft offers 3 different software development kits:

    • Dynamic Web TWAIN – A powerful browser-based document scanning SDK specifically designed for web application. Demo>>
    • Mobile Browser Capture – A lightweight pure JavaScript SDK to enable document capturing via the build-in mobile camera in a web page. Demo>>
    • Dynamic .NET TWAIN – A .NET component for scanning documents from scanners and capturing images from web cams. Demo>>

Which scanner program is suitable for me?

Keep reading to learn about which API is suitable for me or what protocol does scanner use to communicate with software?

Most scanners come with a TWAIN driver and a WIA (Windows Image Acquisition) driver. Both TWAIN and WIA are applications programming interface (API) and communications protocol that regulates communication between software and digital imaging devices, such as scanners and cameras.

In comparison, while TWAIN offers more sophisticated support for scanners, WIA offers better support for digital cameras.

WIA, as the name suggests, is designed by Microsoft for its Windows Me and later Windows operating systems. TWAIN, on the other hand, is maintained by TWAIN working group, which consists of scanner manufactures, such as Epson and HP, etc. and software vendors, such as Dynamsoft. More details about TWAIN and WIA difference can be found in Document Scanning: TWAIN, WIA, ISIS or SANE? .

Should I use a commercial TWAIN control or developing from scratch?

It’s a trade-off of time and money. TWAIN specification is quite long. It takes weeks to master the properties and methods in the document. A commercial TWAIN component like Dynamic Web TWAIN can save you months of development time. It comes with well encapsulated interface, rich samples and responsive tech support.

dynamsoft demo

Web Application – Dynamic Web TWAIN 30-Day Free Trial

  1. Programming Language Support: JavaScript and JQuery do not support directly interacting with peripherals. You can take advantage of this SDK to enable scanning in your web application. Server side lanague supports ASP.NET, PHP, JSP, ASP, VB.NET, etc. and deploy it to web servers (Apache, IIS, NGINX) and server operating system (Windows, Linux, Unix etc.)
  2. Platform Support: Powered with the technology of HTML5 and ActiveX, it supports IE, Edge, Chrome, Firefox, Safari on Windows, Linux and Mac OS X.

.NET Desktop Application – Dynamic .NET TWAIN 30-Day Free Trial

Dynamic .NET TWAIN is a document scanning SDK based on Microsoft .NET Framework 2.0/4.0, which is optimized for use in C# and VB .NET.

Both WinForm and WPF are supported. With the component, you can fully control:

  • Scanners and other TWAIN compliant devices;
  • USB video device class (UVC) and WIA compliant webcams

Contact us if you have any questions.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.

Subscribename@email.com