Commit b2eab06f authored by Volker Krause's avatar Volker Krause
Browse files

Add a test case for barcodes with scaling artifacts

That is, individual lines are off by one pixel in size, making the features
in there non-square. This can be found for example in DataMatrix codes on
Renfe tickets, or QR codes on CCC tickets.

This isn't a problem for our current decoder, but fails with new ZXing
ReadBarcode() API in pure mode.
parent 155c9abc
Pipeline #41487 failed with stage
in 4 minutes and 15 seconds
......@@ -76,6 +76,8 @@ private Q_SLOTS:
QTest::newRow("1") << QStringLiteral("qrcode1.png") << QStringLiteral("M$K0YGV0G");
QTest::newRow("2") << QStringLiteral("qrcode2.png") << QStringLiteral("KZEXO4HRE");
// individual lines have non-square features (found e.g. in Renfe tickets)
QTest::newRow("3") << QStringLiteral("qrcode-scale-artifacts.png") << QStringLiteral("M$K0YGV0G");
}
void testQRCode()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment