Zxing lib refuses to recognize QR code at all

35 Views Asked by At

I have an example QRcode like this: https://i.imgur.com/Uka0KI6.jpeg

SecScanQR app parses it just fine. According to the github sources, it uses XZing Library. However, when I try to parse the same QR code using latest port of XZing for .NET - it simply can't find anything:

Bitmap bitmap = System.Drawing.Image.FromFile(@"d:\Temp\1.bmp") as Bitmap;
var bSource = new BitmapLuminanceSource(bitmap);
BinaryBitmap bbMap2 = new BinaryBitmap(new HybridBinarizer(bSource));
Result result0 = new MultiFormatReader().decode(bbMap2);
if (result0 != null)
{
    Console.WriteLine(result0.BarcodeFormat.ToString());
    Console.WriteLine(result0.Text);

The most bizzare things is that Xzing online scanner itself also can't find any valid barcode. I'm confused, as far as I know, there was no format changes to QRcode spec for the past millennia, so what gives?

0

There are 0 best solutions below