可以听 twain(也许是 WIA)扫描仪吗?

发布于 2024-07-08 05:21:14 字数 197 浏览 11 评论 0原文

我正在评估 VintaSoft .net 控件和 Atalasoft DotTwain 图像捕获。 我对大部分定义和关键词感到非常困惑。

所以我问这个是因为我觉得我在拉拉之地。 是否可以听或让扫描仪告诉我的应用程序有扫描图像并且我可以处理它?

这个想法是让一个 winservice 等待扫描仪扫描某些内容,并在扫描发生时处理图像。

I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords.

So I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is a scanned image and I can process it?

The idea is to have a winservice that is waiting for the scanner to scan something and when that happens process the image.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

疏忽 2024-07-15 05:21:14

我只使用过 TWAIN 和 WIA 的本机接口,因此我不能保证它们之上的其他层。 然而,对于 TWAIN,确实存在一些允许通知应用程序捕获数据的机制。 我相信这是通过 STI.dll 来处理的,STI.dll 是 Windows 2000+ 上可用的较旧的库。 查找 StiCreateInstance 了解更多信息。

如果你选择走WIA路线,那就简单多了。 您可以注册以接收事件,例如“扫描”按钮或“图像创建”事件。 然后您需要做的就是处理这些事件来获取图像。 其中最困难的部分是找到实现您想要的功能的硬件。

Microsoft 有一个 WIA 自动化库,可以使许多任务变得更加简单。 它可以被脚本语言使用。

I have only worked with the native interfaces to TWAIN and WIA, so I can't vouch for these other layers on top of them. However, with regards to TWAIN, some mechanisms do exist that allow an application to be notified to capture data. I believe this is handled with STI.dll, an older library that is available on Windows 2000+. Look up StiCreateInstance for more info.

If you choose to go the WIA route, it is much simpler. You can register to recieve events, such as a 'scan' button or 'image created' event. Then all you need to do is handle those events to get the image. The toughest part of that is finding hardware that implements the features you want.

Microsoft has a WIA automation library that makes many of these tasks much simpler. It can be used by scripting languages.

命比纸薄 2024-07-15 05:21:14

我们最近将 TWAIN 合并到我们的一款应用程序中。 我们研究了 WIA,但最终 TWAIN 更加灵活,可以连接到 VRS(虚拟重新扫描)等应用程序。 最后是“拉”,您请求扫描,然后等待扫描仪。 VRS 的好处之一是它是我们的 TWAIN 调用和设备之间的软件,因此它可以处理一些事情,其中​​之一是它可以等待,几乎永远等待纸张被放入料斗中用于扫描。 这样就可以“启动”扫描作业,然后等待纸张,还可以将其他页面添加到设备中。

如果您正在寻找更“推送”的东西,那么请寻找支持 ftp/smb/电子邮件等的扫描仪或 MFP,并让它进行扫描,您可以简单地监视文件夹或 POP3 邮箱的工作。

您还可以使用包含(有时需要额外付费)工具的 MFP 设备来提供帮助,例如 Xerox 的 Template、Lexmark 的 LDSS、HP 的 DSS。

以下是我们基于扫描仪集成的 .NET TWAIN 代码的链接:
http://www.codeproject.com/KB/dotnet/twaindotnet.aspx

We've recently incorporated TWAIN into one of our apps. We looked at WIA but in the end TWAIN is much more flexible and can connect to apps such as VRS (Virtual ReScan). In the end it's 'pull', you request a scan and then wait for the scanner. One of the nice things with VRS is that it's software between our TWAIN calls and the device, as such, it takes care of a few things, one of which is it will can wait, virtually forever, for paper to be placed in the hopper for scanning. This allows the ability to 'start' a scan job and then wait for the paper, it also allows for additional pages to be added to the unit.

If you are looking for something a little more 'push' oriented then look to a scanner or MFP that supports ftp/smb/email etc. and let it scan and you can simply monitor a folder or POP3 mailbox for the job.

You can also look to MFP devices that include (sometimes at additional cost) tools to help such as Xerox's Template, Lexmark's LDSS, HP's DSS.

Here is a link to the .NET TWAIN code we based our scanner integration with:
http://www.codeproject.com/KB/dotnet/twaindotnet.aspx

箜明 2024-07-15 05:21:14

[编辑 - 如果是我,我会看看 adzm 的答案;-p]

据我了解,常规 TWAIN 是扫描仪的“拉”,而不是“推”。 我很可能是错的……

我希望高端、大容量扫描仪(你知道,台球桌大小的扫描仪)确实存在这样的接口,但(据我所知)普通消费者扫描仪不存在这样的接口。

为了与 .NET(以及之前的 COM)一起使用,我总是使用 ImageMan

[edit - if it was me, I'd look at adzm's answer ;-p]

As I understand it, regular TWAIN is a "pull", not a "push" from the scanner. I could well be wrong...

I expect such interfaces do exist for high end, high volume scanners (you know, the ones the size of a billiard table) - but not (AFAIK) for regular consumer scanners.

For use with .NET (and before that, COM), I've always managed with ImageMan.

奶气 2024-07-15 05:21:14

扫描仪可以告诉您的应用程序有扫描图像。 我不熟悉 VintaSoft .net 控件和 Atalasoft DotTwain Image Capture,但是对于一些 twain sdks,每次扫描后都会触发 OnPostTransfer/OnPostAllTransfer 事件,以便您可以“通知”您的 winservice

It is possible to have the scanner tell your app that there is a scanned image. I am not familiar with VintaSoft .net control and Atalasoft DotTwain Image Capture, but with some twain sdks, there is OnPostTransfer/OnPostAllTransfer event which is triggered after each scanning so that you can "notify" your winservice

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