More UPC-A tests: interesting clear but low-res images that don't decode
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 23 Sep 2008 17:24:03 +0000 (17:24 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 23 Sep 2008 17:24:03 +0000 (17:24 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@587 59b500cc-1b3d-0410-9834-0bbf25fbcc57

15 files changed:
core/test/data/blackbox/upca-4/1.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/1.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/2.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/2.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/3.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/3.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/4.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/4.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/5.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/5.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/6.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/6.txt [new file with mode: 0644]
core/test/data/blackbox/upca-4/7.jpg [new file with mode: 0644]
core/test/data/blackbox/upca-4/7.txt [new file with mode: 0644]
core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.java [new file with mode: 0644]

diff --git a/core/test/data/blackbox/upca-4/1.jpg b/core/test/data/blackbox/upca-4/1.jpg
new file mode 100644 (file)
index 0000000..9273edf
Binary files /dev/null and b/core/test/data/blackbox/upca-4/1.jpg differ
diff --git a/core/test/data/blackbox/upca-4/1.txt b/core/test/data/blackbox/upca-4/1.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/2.jpg b/core/test/data/blackbox/upca-4/2.jpg
new file mode 100644 (file)
index 0000000..eaddef3
Binary files /dev/null and b/core/test/data/blackbox/upca-4/2.jpg differ
diff --git a/core/test/data/blackbox/upca-4/2.txt b/core/test/data/blackbox/upca-4/2.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/3.jpg b/core/test/data/blackbox/upca-4/3.jpg
new file mode 100644 (file)
index 0000000..c150e8b
Binary files /dev/null and b/core/test/data/blackbox/upca-4/3.jpg differ
diff --git a/core/test/data/blackbox/upca-4/3.txt b/core/test/data/blackbox/upca-4/3.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/4.jpg b/core/test/data/blackbox/upca-4/4.jpg
new file mode 100644 (file)
index 0000000..b2995d7
Binary files /dev/null and b/core/test/data/blackbox/upca-4/4.jpg differ
diff --git a/core/test/data/blackbox/upca-4/4.txt b/core/test/data/blackbox/upca-4/4.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/5.jpg b/core/test/data/blackbox/upca-4/5.jpg
new file mode 100644 (file)
index 0000000..2039351
Binary files /dev/null and b/core/test/data/blackbox/upca-4/5.jpg differ
diff --git a/core/test/data/blackbox/upca-4/5.txt b/core/test/data/blackbox/upca-4/5.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/6.jpg b/core/test/data/blackbox/upca-4/6.jpg
new file mode 100644 (file)
index 0000000..546b69f
Binary files /dev/null and b/core/test/data/blackbox/upca-4/6.jpg differ
diff --git a/core/test/data/blackbox/upca-4/6.txt b/core/test/data/blackbox/upca-4/6.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/data/blackbox/upca-4/7.jpg b/core/test/data/blackbox/upca-4/7.jpg
new file mode 100644 (file)
index 0000000..0362c93
Binary files /dev/null and b/core/test/data/blackbox/upca-4/7.jpg differ
diff --git a/core/test/data/blackbox/upca-4/7.txt b/core/test/data/blackbox/upca-4/7.txt
new file mode 100644 (file)
index 0000000..6759a5e
--- /dev/null
@@ -0,0 +1 @@
+023942431015
\ No newline at end of file
diff --git a/core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.java b/core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.java
new file mode 100644 (file)
index 0000000..87c6dc0
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2008 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.oned;
+
+import com.google.zxing.MultiFormatReader;
+import com.google.zxing.BarcodeFormat;
+import com.google.zxing.common.AbstractBlackBoxTestCase;
+
+import java.io.File;
+
+/**
+ * @author dswitkin@google.com (Daniel Switkin)
+ */
+public final class UPCABlackBox4TestCase extends AbstractBlackBoxTestCase {
+
+  public UPCABlackBox4TestCase() {
+    super(new File("test/data/blackbox/upca-4"), new MultiFormatReader(), BarcodeFormat.UPC_A);
+    addTest(0, 1, 0.0f);
+    addTest(0, 1, 180.0f);
+  }
+
+}
\ No newline at end of file