From 1e5964024bc06fc4f9eedfe451d5ed218e3544ba Mon Sep 17 00:00:00 2001 From: srowen Date: Tue, 8 Dec 2009 19:47:50 +0000 Subject: [PATCH] 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 --- .../com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java | 2 +- .../com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java | 6 +++--- .../com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java | 6 +++--- .../com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java index 7d45588d4..544627c43 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 6888c9453..3f000a537 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 c614aa870..bd3d06431 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 fe13f81d1..07db2ccc3 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); }