Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing WIA without having a scanner/camera device

I wrote a simple scanning code using WIA. I don't have a scanner device so I can't test it. Can I simulate a WIA device to testing it ?

like image 811
iboware Avatar asked May 31 '10 01:05

iboware


People also ask

What does WIA scanner device mean?

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, ...

What does Auto Configuration Scanner mean?

Based on the selected input source, the device can automatically configure itself to use scan settings that are appropriate for the source. In addition, the device might have a front panel through which the user can select settings that the device configures automatically, without intervention by the application.


2 Answers

This does definitely what you want: https://github.com/twain/wia-on-twain

I simulates a scanner and publishes a TWAIN and a WIA interface. Also the scanning of a graphical page is simulated, so you can try out different resolutions and colour schemes.

like image 143
heinob Avatar answered Oct 17 '22 23:10

heinob


Not sure, but maybe http://scanworkssoftware.com/twainimporter.aspx will help you

or, Go to http://twain.org and under the "Fast Find" section click the last link titled "Sample Data Source & Application". This will install TWAIN 2.0 and a sample source named "TWAIN2 FreeImage Software Scanner" which has some basic scanning features. It does not have a driver interface but will let you preform scans and Get/Set some general properties.

like image 45
itsho Avatar answered Oct 17 '22 23:10

itsho