C# 从 .NET 应用程序中读取和解码存储在图像或 PDF 文件中的 PDF-417 条码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/604233/
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-04 10:00:56  来源:igfitidea点击:

Reading and decoding PDF-417 barcodes stored in an image or PDF file from within a .NET application

c#.netbarcodedecode

提问by John Rasch

I am looking for a .NET library that is able to decode data from a PDF-417 barcodethat is embedded either in an image file or PDF. At this point, I have only been able to find a Java versionand a C version.

我正在寻找一个 .NET 库,它能够从嵌入在图像文件或 PDF 中的PDF-417 条形码解码数据。此时,我只能找到Java 版本C 版本

Ideally, this library would be both open-source and free of charge, but I doubt such a decoder exists.

理想情况下,这个库既是开源的又是免费的,但我怀疑是否存在这样的解码器。

I am open to trying out demos of existing products that you may have had experience with - which leads me to the question - have you had any experience reading PDF-417 barcodes embedded in images or PDFs using .NET, and which of the available products would you recommend to do so?

我愿意尝试您可能使用过的现有产品的演示 - 这引出了我的问题 - 您是否有使用 .NET 阅读嵌入在图像或 PDF 中的 PDF-417 条形码的经验,以及哪些可用产品你会建议这样做吗?

采纳答案by MikeW

We use components (not free) from IDAutomationfor PDF417. They are very good. We use them for encoding, as opposed to reading and decoding.

我们使用IDAutomation 的组件(非免费)用于 PDF417。他们很好。我们使用它们进行编码,而不是读取和解码。

Haven't used this component of theirs, but have a look it is C#, and you can obtain the source code, but again, not free.

没用过他们的这个组件,看看是C#的,可以获取源代码,但是又不是免费的。

http://www.idautomation.com/barcode-recognition/

http://www.idautomation.com/barcode-recognition/

回答by MikeW

Aspose has a PDF417 encoder/decoder for both .NET and Java, but it is not open source: http://www.aspose.com/categories/.net-components/aspose.barcode-for-.net/default.aspx

Aspose 有一个适用于 .NET 和 Java 的 PDF417 编码器/解码器,但它不是开源的:http: //www.aspose.com/categories/.net-components/aspose.barcode-for-.net/default.aspx

回答by Ronnie Barnard

The ClearImage Barcode Recognition SDK for .NETis probably the easiest way to decode PDF 417 and many other barcodes. I use it in many projects... although it is not free

适用于 .NETClearImage 条码识别 SDK可能是解码 PDF 417 和许多其他条码的最简单方法。我在许多项目中使用它...虽然它不是免费的

         var bitmap = WpfImageHelper.ConvertToBitmap(_BarcodeCam.BitmapSource);

        _ImageEditor.Bitmap = bitmap;
        _ImageEditor.AutoDeskew();
        _ImageEditor.AdvancedBinarize();

        var reader = new BarcodeReader();
        reader.Horizontal = true;
        reader.Vertical = true;
        reader.Pdf417 = true;

        //_ImageEditor.Bitmap.Save("c:\barcodeimage.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

        var barcodes = reader.Read(_ImageEditor.Bitmap);

        if (barcodes.Count() > 0)

回答by cuteCAT

Morovia provides a free pdf417 decoder.

Morovia 提供免费的pdf417 解码器

回答by meng

try this

尝试这个

http://platform.twit88.com/projects/mt-barcode

http://platform.twit88.com/projects/mt-barcode

This is a zxing c# port

这是一个 zxing c# 端口

回答by Savage

I've just successfully integrated the ZXing .Net port from java. It's not as powerful as other paid SDK's - for instance it couldn't detect barcodes in a rotated image. However, it's free and might work for you if you're on a budget. Generally you'll find the paid SDKs cost $400 and up. It has over a million downloads on Nuget, if that means anything.

我刚刚成功地从 java 集成了 ZXing .Net 端口。它不如其他付费 SDK 强大 - 例如,它无法检测旋转图像中的条形码。但是,它是免费的,如果您的预算有限,它可能适合您。通常,您会发现付费 SDK 的价格为 400 美元及以上。它在 Nuget 上的下载量超过一百万,如果这意味着什么的话。

https://github.com/micjahn/ZXing.Net

https://github.com/micjahn/ZXing.Net