Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twain or WIA? A bit lost between this two interface [closed]

Tags:

c#

.net

api

twain

wia

I need to write a c# assembly (DLL) in order to scan documents.
I don't know if I need to use TWAIN or WIA.

Anyone could help me please ?

  • What are the différences?
  • What are your advices ?
  • Is there a c# Library ?
like image 740
Walter Fabio Simoni Avatar asked May 20 '13 07:05

Walter Fabio Simoni


People also ask

What is the difference between WIA and TWAIN?

TWAIN has three transfer modes (native, memory, file) while WIA has only two (memory, file). TWAIN enables device vendors to create a customized user interface for each driver. WIA uses a simplified user interface for all devices, based on a scripting object model.

What does TWAIN WIA mean?

TWAIN is meant to be an industry standard (covering all image acquisition devices, for all Operating Systems) while WIA is a vendor (Microsoft) API provided to image acquisition device manufacturers for Windows Operating Systems only.

How do I enable TWAIN function?

In the administrator mode, select [Network] - [TCP/IP Setting] - [TCP/IP Setting], and set [SLP] to [Enable] (Default: [Enable]). In the administrator mode, select [Network] - [TCP Socket Setting], then configure the following settings. Select this check box to use the TWAIN scan function.

What does WIA mean for scanner?

Windows Image Acquisition (WIA; sometimes also called Windows Imaging Architecture) is a proprietary Microsoft driver model and application programming interface (API) for Microsoft Windows Me and later Windows operating systems that enables graphics software to communicate with imaging hardware such as scanners, ...


1 Answers

Generally, if your application is to interact with scanners, TWAIN is recommended. While for cameras, WIA offers better support.

So for document scanning solution, I would recommend TWAIN.

TWAIN.H file is a C/C++ header file. If you want to code it to .NET yourself, you can refer to this post to get some resources: Using TWAIN in .NET - Looking for resources

Or you can use a commercial .NET TWAIN component.

like image 170
Rachel Avatar answered Oct 02 '22 13:10

Rachel