我正在尝试使用带有 ZXing.net 库的 C# Winforms 应用程序来制作 ID 阅读器。
我找到了一个像这样的简单示例,但效果不佳,两个结果始终为空
我试图弄清楚问题是什么!
IBarcodeReader reader = new BarcodeReader();
reader.Options.PossibleFormats = new List<BarcodeFormat>();
reader.Options.PossibleFormats.Add(BarcodeFormat.PDF_417);
reader.Options.PossibleFormats.Add(BarcodeFormat.RSS_14);
reader.Options.TryHarder = true;
var barcodeBitmap = (Bitmap)Image.FromFile("d:\\5.png");
var res1 = reader.Decode(barcodeBitmap);
var res2 = reader.DecodeMultiple(barcodeBitmap);
任何帮助!