C# .NET 扫描 API

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 09:47:15  来源:igfitidea点击:

.NET Scanning API

提问by Erick Sgarbi

Is there any free or commercial component written in .NET (no COM interop) that will work with most twain scanners?

是否有任何用 .NET 编写的免费或商业组件(无 COM 互操作)可以与大多数 twain 扫描仪一起使用?

采纳答案by Jedi Master Spooky

In my company we use Pegasus. It's great.

在我的公司,我们使用Pegasus。这很棒。

回答by Redbaron

Take a look at CodeProject: .NET TWAIN image scanningThat might give you a good start.

看看 CodeProject:.NET TWAIN 图像扫描这可能会给你一个好的开始。

回答by Matt Hamilton

Microsoft have an API all about scanning. It's called Windows Image Acquisitionand you can read a great Coding4Fun article about it by none other than Scott Hanselman here.

微软有一个关于扫描的 API。这就是所谓的Windows图像采集,并可以通过莫属斯科特Hanselman的阅读有很大Coding4Fun文章关于它在这里

回答by Crippeoblade

Just started a project in .net and found great info here(*dead link as of Feb 2014) about using Windows Image Acquisition. Lots of sample VB code and some c#.

刚刚在 .net 中启动了一个项目,并在此处找到了有关使用 Windows Image Acquisition 的重要信息(*截至 2014 年 2 月的死链接)。许多示例 VB 代码和一些 c#。

回答by Lou Franco

Disclaimer: I work for Atalasoft

免责声明:我为 Atalasoft 工作

Atalasoft has a product, DotTwain, which has no COM interop (just direct calls to the twain dll from .NET) and gives you a completely .NET interface. It can be embedded in a browser hosted WinForms control, for instance, because it doesn't use COM.

Atalasoft 有一个产品DotTwain,它没有 COM 互操作(只是从 .NET 直接调用 twain dll)并为您提供完全 .NET 接口。例如,它可以嵌入在浏览器托管的 WinForms 控件中,因为它不使用 COM。

回答by Lou Franco

The Accusoft Pegasus .NET component is called TwainPRO, and it's included in the ImagXpress SDK.

Accusoft Pegasus .NET 组件称为 TwainPRO,它包含在 ImagXpress SDK 中。

The ImageGear .NET toolkit from Accusoft Pegasus also includes a full-managed implementation of Twain.

Accusoft Pegasus 的 ImageGear .NET 工具包还包括 Twain 的完全托管实现。

回答by Luke Quinane

TwainDotNet

吐温网

I've just wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a Google code project: http://code.google.com/p/twaindotnet/

我刚刚将 Thomas Scheidegger 的文章(CodeProject:.NET TWAIN 图像扫描)中的代码打包到 Google 代码项目中:http: //code.google.com/p/twaindotnet/

I've cleaned up the API a bit and added WPF support, so check it out. :)

我已经稍微清理了 API 并添加了 WPF 支持,所以请检查一下。:)

回答by Spike0xff

+1 for Atalasoft

+1 为 Atalasoft

Technical quibble: You can avoid COM, but you can't avoid Interop: TWAIN is a native Win32 or Win64 DLL that is not part of Windows proper and is unknown to the CLR, so at the bottom, either in your code or the component you use, there are Interop calls to unmanaged code. Given what I know about TWAIN drivers, maybe I should say to veryunmanaged code...

技术问题:您可以避免使用 COM,但无法避免互操作:TWAIN 是本机 Win32 或 Win64 DLL,它不是 Windows 的一部分,并且不为 CLR 所知,因此在底部,无论是在您的代码中还是在组件中您使用,有对非托管代码的互操作调用。鉴于我对 TWAIN 驱动程序的了解,也许我应该对非常非托管的代码说......

I've always had the impression that WIA was great for digital cameras, OK for consumer flatbeds, and not a serious contender for 'production scanning' - meaning something like full-speed multipage scans from a document feeder, under application control, using a USD400+ scanner. I've never heard of anybody doing production scanning through WIA, but I'd sure like to hear from somebody who's done this.

我一直有这样的印象,WIA 非常适合数码相机,适合消费平板电脑,而不是“生产扫描”的有力竞争者 - 这意味着从文档进纸器进行全速多页扫描,在应用程序控制下,使用400 美元以上的扫描仪。我从来没有听说过有人通过 WIA 进行生产扫描,但我肯定想听听做过这件事的人的意见。

回答by Mike L

I just saw another Scanning question that referenced a 3rd party commercial product to add to the list: ImageMan

我刚刚看到另一个扫描问题,该问题引用了要添加到列表中的第 3 方商业产品: ImageMan

Looks like a single developer license starts at $325. I haven't used it personally, but is one of three or four products I'm evaluating.

看起来单个开发人员许可证的起价为 325 美元。我个人没有使用过它,但它是我正在评估的三四种产品之一。

回答by deerchao

I found NTwainvia Nuget, which satisfied me.

我通过Nuget找到了NTwain,这让我很满意。