From: srowen Date: Tue, 8 Dec 2009 19:47:50 +0000 (+0000) Subject: Make finder pattern detection a little more tolerant, per Ralf. Increases accuracy... X-Git-Url: http://git.rot13.org/?p=zxing.git;a=commitdiff_plain;h=1457fa5a228bab255fe706b5c6a3eebd6199359f Make finder pattern detection a little more tolerant, per Ralf. Increases accuracy slightly. git-svn-id: http://zxing.googlecode.com/svn/trunk@1141 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java index 7d45588d..544627c4 100644 --- a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java @@ -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); } } \ No newline at end of file diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java index 6888c945..3f000a53 100644 --- a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java @@ -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); } } \ No newline at end of file diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java index c614aa87..bd3d0643 100644 --- a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java @@ -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); } diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java index fe13f81d..07db2ccc 100644 --- a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java @@ -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); }