Testing WIA without having a scanner/camera device
Asked Answered
W

8

16

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 ?

Whitefish answered 31/5, 2010 at 1:48 Comment(0)
D
2

With enough effort and the WIA SDK (and probably the Windows DDK as well) you probably can. But it will be a large amount of effort, especially compared to the price tag of a cheap scanner.

I'm assuming your time is worth something. If this is a hobby project, then compare the price of a cheap scanner to the time saved that can be spent working on the fun parts of the project. If this is a work project, then the time saved is more valuable to your customer than to you, but there should still be business case for buying hardware that will save more time than it cost.

Davao answered 9/9, 2010 at 8:10 Comment(0)
A
4

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.

Arsenious answered 13/3, 2013 at 11:4 Comment(0)
A
3

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.

Automaton answered 4/10, 2010 at 21:35 Comment(0)
D
2

With enough effort and the WIA SDK (and probably the Windows DDK as well) you probably can. But it will be a large amount of effort, especially compared to the price tag of a cheap scanner.

I'm assuming your time is worth something. If this is a hobby project, then compare the price of a cheap scanner to the time saved that can be spent working on the fun parts of the project. If this is a work project, then the time saved is more valuable to your customer than to you, but there should still be business case for buying hardware that will save more time than it cost.

Davao answered 9/9, 2010 at 8:10 Comment(0)
A
1

I know this question is very old, but I'll post this as a reference.

Since Windows 10 Microsoft has made a GitHub repository with sample drivers, including the WIA ones:

https://github.com/Microsoft/Windows-driver-samples/tree/master/wia

I wasn't able to test them yet, but they should create a test device.

Anetta answered 19/1, 2019 at 19:5 Comment(0)
S
0

Well, try if this virtual webcam supports the WIA interface: http://www.soundmorning.com/

If so, you are all set and ready to go.

You can also search for "Fake webcam", there are many versions.

Sorehead answered 29/9, 2010 at 12:16 Comment(0)
F
0

One thing to be concerned about is that all WIA drivers are not created equally. We recently had trouble using some Brother WIA drivers that were supposedly certified. The driver would not allow access to the feeder tray. We ended up having to write TWAIN integration also.

Fahland answered 22/10, 2010 at 19:9 Comment(0)
B
0

(1) http://graphics.kodak.com/docimaging/US/en/Support_Center/Document_Scanners/Desktop/i65_Scanner/Support/Drivers_And_Downloads/i55_and_i65_Scanner_Driver/index.htm InstallSoftware__v1.7.exe

(2) http://sourceforge.net/projects/twain-samples/files/TWAIN%202%20Sample%20Application/ WIAonTWAIN_SDK.msi

(3) For testing only you can also use the free demo version of the commercial file import TWAIN driver XPCTWAIN. Product info: http://www.jse.de/products.html#xpctwain Demo download: http://www.jse.de/download/setup_xd.exe setup_xd.exe

Bedding answered 15/12, 2014 at 5:15 Comment(0)
M
-1

Sounds like an occasion where writing the virtual device that is WIA compat might be the thing that needs to be given back to the community.

Mccullum answered 3/11, 2010 at 19:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.