最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vb.net - ZXIng lib used in .NET can't decode one of the QR codes, while online version of the lib can - Stack Overflow

programmeradmin2浏览0评论

I've got a series of QR codes generated by Powershell script (not mine, see below). It's just a content of sample TXT file split into 64 characters chunks. For each chunk I've got one QR code. There are 5 files with the names 00.png to 04.png

My small VB.NET app using ZXing library, reads files one by one and decodes QR codes. I was surprised that the second file 01.png couldn't be decoded by the library. The rest is fine.

All QR codes are read like this:

Dim reader = New BarcodeReader()
Dim barcodeBitmap As Bitmap

barcodeBitmap = Image.FromFile("01.png")

Dim result As ZXing.Result
result = reader.Decode(barcodeBitmap)

problematic QR code

QRCodes generator used - .6.0

ZXing online - .jspx

ZXing used - 0.16.10.0 for .NET 4.5

I can assume (to some extent) that the QR code 01.png is fine since I tried to decode it in other apps. Two apps on Android and even online version of ZXing library can decode attached file without any problems. This is the first time I use that library so no idea why that particular QR code can't be properly decoded. I'm pretty new in QR codes topic as well, so maybe I'm missing something important.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论