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

余生颓废 提交于 2019-12-18 11:55:49

问题


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

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?


回答1:


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

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.

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




回答2:


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

         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)



回答3:


try this

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

This is a zxing c# port




回答4:


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




回答5:


Morovia provides a free pdf417 decoder.




回答6:


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.

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



来源:https://stackoverflow.com/questions/604233/reading-and-decoding-pdf-417-barcodes-stored-in-an-image-or-pdf-file-from-within

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!