Make finder pattern detection a little more tolerant, per Ralf. Increases accuracy slightly.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1141 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-12-08 19:47:50 +00:00
parent e0fc79fda0
commit 1e5964024b
4 changed files with 9 additions and 9 deletions

View file

@ -30,7 +30,7 @@ public final class QRCodeBlackBox1TestCase extends AbstractBlackBoxTestCase {
addTest(19, 19, 0.0f);
addTest(15, 15, 90.0f);
addTest(17, 17, 180.0f);
addTest(14, 14, 270.0f);
addTest(15, 15, 270.0f);
}
}

View file

@ -28,9 +28,9 @@ public final class QRCodeBlackBox3TestCase extends AbstractBlackBoxTestCase {
public QRCodeBlackBox3TestCase() {
super("test/data/blackbox/qrcode-3", new MultiFormatReader(), BarcodeFormat.QR_CODE);
addTest(33, 33, 0.0f);
addTest(33, 33, 90.0f);
addTest(33, 33, 180.0f);
addTest(35, 35, 270.0f);
addTest(36, 36, 90.0f);
addTest(32, 32, 180.0f);
addTest(38, 38, 270.0f);
}
}

View file

@ -29,9 +29,9 @@ public final class QRCodeBlackBox4TestCase extends AbstractBlackBoxTestCase {
public QRCodeBlackBox4TestCase() {
super("test/data/blackbox/qrcode-4", new MultiFormatReader(), BarcodeFormat.QR_CODE);
addTest(34, 34, 0.0f);
addTest(36, 36, 90.0f);
addTest(35, 35, 180.0f);
addTest(32, 32, 0.0f);
addTest(37, 37, 90.0f);
addTest(36, 36, 180.0f);
addTest(34, 34, 270.0f);
}

View file

@ -30,9 +30,9 @@ public final class QRCodeBlackBox5TestCase extends AbstractBlackBoxTestCase {
public QRCodeBlackBox5TestCase() {
super("test/data/blackbox/qrcode-5", new MultiFormatReader(), BarcodeFormat.QR_CODE);
addTest(4, 4, 0.0f);
addTest(5, 5, 0.0f);
addTest(4, 4, 90.0f);
addTest(4, 4, 180.0f);
addTest(5, 5, 180.0f);
addTest(5, 5, 270.0f);
}