diff --git a/core/test/data/blackbox/qrcode-5/01.jpg b/core/test/data/blackbox/qrcode-5/01.jpg new file mode 100755 index 000000000..9078e73c5 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/01.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/01.txt b/core/test/data/blackbox/qrcode-5/01.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/01.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/02.jpg b/core/test/data/blackbox/qrcode-5/02.jpg new file mode 100755 index 000000000..e8b79849e Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/02.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/02.txt b/core/test/data/blackbox/qrcode-5/02.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/02.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/03.jpg b/core/test/data/blackbox/qrcode-5/03.jpg new file mode 100755 index 000000000..4066daaa1 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/03.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/03.txt b/core/test/data/blackbox/qrcode-5/03.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/03.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/04.jpg b/core/test/data/blackbox/qrcode-5/04.jpg new file mode 100755 index 000000000..a443c4515 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/04.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/04.txt b/core/test/data/blackbox/qrcode-5/04.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/04.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/05.jpg b/core/test/data/blackbox/qrcode-5/05.jpg new file mode 100755 index 000000000..fabef06a7 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/05.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/05.txt b/core/test/data/blackbox/qrcode-5/05.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/05.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/06.jpg b/core/test/data/blackbox/qrcode-5/06.jpg new file mode 100755 index 000000000..3f9af7602 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/06.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/06.txt b/core/test/data/blackbox/qrcode-5/06.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/06.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/07.jpg b/core/test/data/blackbox/qrcode-5/07.jpg new file mode 100755 index 000000000..92febf5ee Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/07.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/07.txt b/core/test/data/blackbox/qrcode-5/07.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/07.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/08.jpg b/core/test/data/blackbox/qrcode-5/08.jpg new file mode 100755 index 000000000..0122439f2 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/08.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/08.txt b/core/test/data/blackbox/qrcode-5/08.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/08.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/09.jpg b/core/test/data/blackbox/qrcode-5/09.jpg new file mode 100755 index 000000000..67deee071 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/09.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/09.txt b/core/test/data/blackbox/qrcode-5/09.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/09.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/10.jpg b/core/test/data/blackbox/qrcode-5/10.jpg new file mode 100755 index 000000000..29976c0d7 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/10.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/10.txt b/core/test/data/blackbox/qrcode-5/10.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/10.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/11.jpg b/core/test/data/blackbox/qrcode-5/11.jpg new file mode 100755 index 000000000..0921357f1 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/11.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/11.txt b/core/test/data/blackbox/qrcode-5/11.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/11.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/12.jpg b/core/test/data/blackbox/qrcode-5/12.jpg new file mode 100755 index 000000000..ea7bda899 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/12.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/12.txt b/core/test/data/blackbox/qrcode-5/12.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/12.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/13.jpg b/core/test/data/blackbox/qrcode-5/13.jpg new file mode 100755 index 000000000..9d4f2470c Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/13.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/13.txt b/core/test/data/blackbox/qrcode-5/13.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/13.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/14.jpg b/core/test/data/blackbox/qrcode-5/14.jpg new file mode 100755 index 000000000..55378ae86 Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/14.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/14.txt b/core/test/data/blackbox/qrcode-5/14.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/14.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/data/blackbox/qrcode-5/15.jpg b/core/test/data/blackbox/qrcode-5/15.jpg new file mode 100755 index 000000000..5abc7d65f Binary files /dev/null and b/core/test/data/blackbox/qrcode-5/15.jpg differ diff --git a/core/test/data/blackbox/qrcode-5/15.txt b/core/test/data/blackbox/qrcode-5/15.txt new file mode 100644 index 000000000..424f852a6 --- /dev/null +++ b/core/test/data/blackbox/qrcode-5/15.txt @@ -0,0 +1 @@ +MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;; \ No newline at end of file diff --git a/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java new file mode 100644 index 000000000..fe13f81d1 --- /dev/null +++ b/core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java @@ -0,0 +1,39 @@ +/* + * Copyright 2009 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.zxing.qrcode; + +import com.google.zxing.MultiFormatReader; +import com.google.zxing.BarcodeFormat; +import com.google.zxing.common.AbstractBlackBoxTestCase; + +/** + * Some very difficult exposure conditions including self-shadowing, which happens a lot when + * pointing down at a barcode (i.e. the phone's shadow falls across part of the image). + * + * @author dswitkin@google.com (Daniel Switkin) + */ +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(4, 4, 90.0f); + addTest(4, 4, 180.0f); + addTest(5, 5, 270.0f); + } + +}