无需扫描仪/摄像设备即可测试 WIA

发布于 2024-09-03 05:02:17 字数 57 浏览 5 评论 0原文

我用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

想你的星星会说话 2024-09-10 05:02:18

我知道这个问题很老了,但我会将其发布作为参考。

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

本宫微胖 2024-09-10 05:02:18

好吧,尝试一下这个虚拟网络摄像头是否支持 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.

王权女流氓 2024-09-10 05:02:18

需要关注的一件事是,并非所有 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.

豆芽 2024-09-10 05:02:18

听起来,编写与 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.

弃爱 2024-09-10 05:02:17

这绝对符合您的要求: 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.

七月上 2024-09-10 05:02:17

不确定,但也许 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.

对不⑦ 2024-09-10 05:02:17

通过足够的努力和 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文