diff --git a/core/test/data/blackbox/pdf417-2/01.png b/core/test/data/blackbox/pdf417-2/01.png new file mode 100755 index 000000000..5a262ef39 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/01.png differ diff --git a/core/test/data/blackbox/pdf417-2/01.txt b/core/test/data/blackbox/pdf417-2/01.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/01.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/02.png b/core/test/data/blackbox/pdf417-2/02.png new file mode 100755 index 000000000..d638b5134 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/02.png differ diff --git a/core/test/data/blackbox/pdf417-2/02.txt b/core/test/data/blackbox/pdf417-2/02.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/02.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/03.png b/core/test/data/blackbox/pdf417-2/03.png new file mode 100755 index 000000000..9ab8d7fed Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/03.png differ diff --git a/core/test/data/blackbox/pdf417-2/03.txt b/core/test/data/blackbox/pdf417-2/03.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/03.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/04.png b/core/test/data/blackbox/pdf417-2/04.png new file mode 100755 index 000000000..5394ade9d Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/04.png differ diff --git a/core/test/data/blackbox/pdf417-2/04.txt b/core/test/data/blackbox/pdf417-2/04.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/04.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/05.png b/core/test/data/blackbox/pdf417-2/05.png new file mode 100755 index 000000000..d1e96a43d Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/05.png differ diff --git a/core/test/data/blackbox/pdf417-2/05.txt b/core/test/data/blackbox/pdf417-2/05.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/05.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/06.png b/core/test/data/blackbox/pdf417-2/06.png new file mode 100755 index 000000000..068a8c595 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/06.png differ diff --git a/core/test/data/blackbox/pdf417-2/06.txt b/core/test/data/blackbox/pdf417-2/06.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/06.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/07.png b/core/test/data/blackbox/pdf417-2/07.png new file mode 100755 index 000000000..c88ac2dbb Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/07.png differ diff --git a/core/test/data/blackbox/pdf417-2/07.txt b/core/test/data/blackbox/pdf417-2/07.txt new file mode 100644 index 000000000..6a537b5b3 --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/07.txt @@ -0,0 +1 @@ +1234567890 \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/08.png b/core/test/data/blackbox/pdf417-2/08.png new file mode 100755 index 000000000..d1db7fc68 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/08.png differ diff --git a/core/test/data/blackbox/pdf417-2/08.txt b/core/test/data/blackbox/pdf417-2/08.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/08.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/09.png b/core/test/data/blackbox/pdf417-2/09.png new file mode 100755 index 000000000..0dc2bc909 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/09.png differ diff --git a/core/test/data/blackbox/pdf417-2/09.txt b/core/test/data/blackbox/pdf417-2/09.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/09.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/10.png b/core/test/data/blackbox/pdf417-2/10.png new file mode 100755 index 000000000..0af8a786f Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/10.png differ diff --git a/core/test/data/blackbox/pdf417-2/10.txt b/core/test/data/blackbox/pdf417-2/10.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/10.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/11.png b/core/test/data/blackbox/pdf417-2/11.png new file mode 100755 index 000000000..78912e380 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/11.png differ diff --git a/core/test/data/blackbox/pdf417-2/11.txt b/core/test/data/blackbox/pdf417-2/11.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/11.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/12.png b/core/test/data/blackbox/pdf417-2/12.png new file mode 100755 index 000000000..1bb7203fd Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/12.png differ diff --git a/core/test/data/blackbox/pdf417-2/12.txt b/core/test/data/blackbox/pdf417-2/12.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/12.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/13.png b/core/test/data/blackbox/pdf417-2/13.png new file mode 100755 index 000000000..2bf2fa6e8 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/13.png differ diff --git a/core/test/data/blackbox/pdf417-2/13.txt b/core/test/data/blackbox/pdf417-2/13.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/13.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/14.png b/core/test/data/blackbox/pdf417-2/14.png new file mode 100755 index 000000000..04958489e Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/14.png differ diff --git a/core/test/data/blackbox/pdf417-2/14.txt b/core/test/data/blackbox/pdf417-2/14.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/14.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/15.png b/core/test/data/blackbox/pdf417-2/15.png new file mode 100755 index 000000000..5491838e9 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/15.png differ diff --git a/core/test/data/blackbox/pdf417-2/15.txt b/core/test/data/blackbox/pdf417-2/15.txt new file mode 100644 index 000000000..cd7a77d8c --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/15.txt @@ -0,0 +1 @@ +A PDF 417 barcode with ASCII text \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/16.png b/core/test/data/blackbox/pdf417-2/16.png new file mode 100755 index 000000000..0c30b88d2 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/16.png differ diff --git a/core/test/data/blackbox/pdf417-2/16.txt b/core/test/data/blackbox/pdf417-2/16.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/16.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/17.png b/core/test/data/blackbox/pdf417-2/17.png new file mode 100755 index 000000000..c416da093 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/17.png differ diff --git a/core/test/data/blackbox/pdf417-2/17.txt b/core/test/data/blackbox/pdf417-2/17.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/17.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/18.png b/core/test/data/blackbox/pdf417-2/18.png new file mode 100755 index 000000000..461efaed5 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/18.png differ diff --git a/core/test/data/blackbox/pdf417-2/18.txt b/core/test/data/blackbox/pdf417-2/18.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/18.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/19.png b/core/test/data/blackbox/pdf417-2/19.png new file mode 100755 index 000000000..c91815b12 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/19.png differ diff --git a/core/test/data/blackbox/pdf417-2/19.txt b/core/test/data/blackbox/pdf417-2/19.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/19.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/20.png b/core/test/data/blackbox/pdf417-2/20.png new file mode 100755 index 000000000..513d2d595 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/20.png differ diff --git a/core/test/data/blackbox/pdf417-2/20.txt b/core/test/data/blackbox/pdf417-2/20.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/20.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/21.png b/core/test/data/blackbox/pdf417-2/21.png new file mode 100755 index 000000000..45ea62da2 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/21.png differ diff --git a/core/test/data/blackbox/pdf417-2/21.txt b/core/test/data/blackbox/pdf417-2/21.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/21.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/22.png b/core/test/data/blackbox/pdf417-2/22.png new file mode 100755 index 000000000..7ee3afbe1 Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/22.png differ diff --git a/core/test/data/blackbox/pdf417-2/22.txt b/core/test/data/blackbox/pdf417-2/22.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/22.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/data/blackbox/pdf417-2/23.png b/core/test/data/blackbox/pdf417-2/23.png new file mode 100755 index 000000000..79f8e27fa Binary files /dev/null and b/core/test/data/blackbox/pdf417-2/23.png differ diff --git a/core/test/data/blackbox/pdf417-2/23.txt b/core/test/data/blackbox/pdf417-2/23.txt new file mode 100644 index 000000000..ccef7632d --- /dev/null +++ b/core/test/data/blackbox/pdf417-2/23.txt @@ -0,0 +1 @@ +A larger PDF 417 barcode with a greater amount of text. This is a more difficult test for mobile devices to resolve. \ No newline at end of file diff --git a/core/test/src/com/google/zxing/pdf417/PDF417BlackBox2TestCase.java b/core/test/src/com/google/zxing/pdf417/PDF417BlackBox2TestCase.java new file mode 100644 index 000000000..c61e84a15 --- /dev/null +++ b/core/test/src/com/google/zxing/pdf417/PDF417BlackBox2TestCase.java @@ -0,0 +1,51 @@ +/* + * 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.pdf417; + +import com.google.zxing.BarcodeFormat; +import com.google.zxing.DecodeHintType; +import com.google.zxing.MultiFormatReader; +import com.google.zxing.common.AbstractBlackBoxTestCase; + +import java.util.Hashtable; +import java.util.Vector; + +/** + * This test contains 480x240 images captured from an Android device at preview resolution. + * + * @author dswitkin@google.com (Daniel Switkin) + */ +public final class PDF417BlackBox2TestCase extends AbstractBlackBoxTestCase { + + public PDF417BlackBox2TestCase() { + super("test/data/blackbox/pdf417-2", new MultiFormatReader(), BarcodeFormat.PDF417); + addTest(0, 0, 0.0f); + //addTest(1, 1, 90.0f); + //addTest(1, 1, 180.0f); + //addTest(1, 1, 270.0f); + } + + @Override + protected Hashtable getHints() { + Hashtable table = new Hashtable(3); + Vector v = new Vector(1); + v.add(BarcodeFormat.PDF417); + table.put(DecodeHintType.POSSIBLE_FORMATS, v); + return table; + } + +} \ No newline at end of file