无需扫描仪/摄像设备即可测试 WIA
我用WIA写了一个简单的扫描码。我没有扫描仪设备,所以无法测试。我可以模拟 WIA 设备来测试它吗?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我知道这个问题很老了,但我会将其发布作为参考。
自 Windows 10 以来,Microsoft 已经创建了一个 GitHub 存储库,其中包含示例驱动程序,包括 WIA 驱动程序:
https://github.com/Microsoft/Windows-driver-samples/ tree/master/wia
我还无法测试它们,但他们应该创建一个测试设备。
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.
好吧,尝试一下这个虚拟网络摄像头是否支持 WIA 接口:http://www.soundmorning.com/
如果是这样,您已准备就绪,可以出发了。
你也可以搜索“假网络摄像头”,有很多版本。
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.
需要关注的一件事是,并非所有 WIA 驱动程序都是平等创建的。最近,我们在使用一些据说经过认证的 Brother WIA 驱动程序时遇到了问题。司机不允许接近送纸盘。我们最终还必须编写 TWAIN 集成。
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.
(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
安装软件__v1.7.exe
(2)
http://sourceforge.net/projects/twain-samples/文件/TWAIN%202%20Sample%20Application/
WIAonTWAIN_SDK.msi
(3)
仅用于测试,您还可以使用商业文件导入 TWAIN 驱动程序 XPCTWAIN 的免费演示版。
产品信息:http://www.jse.de/products.html#xpctwain
演示下载:http://www.jse.de/download/setup_xd.exe
setup_xd.exe
(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
听起来,编写与 WIA 兼容的虚拟设备可能是需要回馈社区的事情。
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.
这绝对符合您的要求: https://github.com/twain/wia-on-twain
我模拟了一个扫描仪并发布了一个 TWAIN 和一个 WIA 接口。此外,还模拟了图形页面的扫描,因此您可以尝试不同的分辨率和配色方案。
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.
不确定,但也许 http://scanworkssoftware.com/twainimporter.aspx 会对您有所帮助
,或者,转到http://twain.org 并在“快速查找”部分下单击最后一个标题为“示例数据源和应用程序”的链接”。这将安装 TWAIN 2.0 和一个名为“TWAIN2 FreeImage Software Scanner”的示例源,它具有一些基本的扫描功能。 它没有驱动程序接口,但可以让您执行扫描并获取/设置一些常规属性。
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.
通过足够的努力和 WIA SDK(可能还有 Windows DDK),您可能可以。但这将是一项巨大的努力,特别是与廉价扫描仪的价格标签相比。
我假设你的时间是有价值的。如果这是一个业余爱好项目,那么请将廉价扫描仪的价格与可用于项目有趣部分的节省时间进行比较。如果这是一个工作项目,那么节省的时间对您的客户比对您更有价值,但仍然应该有购买硬件的商业案例,这将节省比成本更多的时间。
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.