Created new false positives blackbox test. We definitely have a problem with EAN_8...
authordswitkin@google.com <dswitkin@google.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 25 Aug 2010 18:23:00 +0000 (18:23 +0000)
committerdswitkin@google.com <dswitkin@google.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 25 Aug 2010 18:23:00 +0000 (18:23 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@1560 59b500cc-1b3d-0410-9834-0bbf25fbcc57

26 files changed:
core/test/data/blackbox/falsepositives-2/01.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/02.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/03.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/04.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/05.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/06.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/07.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/08.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/09.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/10.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/11.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/12.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/13.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/14.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/15.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/16.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/17.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/18.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/19.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/20.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/21.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/22.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/23.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/24.png [new file with mode: 0755]
core/test/data/blackbox/falsepositives-2/25.png [new file with mode: 0755]
core/test/src/com/google/zxing/negative/FalsePositives2BlackBoxTestCase.java [new file with mode: 0644]

diff --git a/core/test/data/blackbox/falsepositives-2/01.png b/core/test/data/blackbox/falsepositives-2/01.png
new file mode 100755 (executable)
index 0000000..adc7164
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/01.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/02.png b/core/test/data/blackbox/falsepositives-2/02.png
new file mode 100755 (executable)
index 0000000..c9e559f
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/02.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/03.png b/core/test/data/blackbox/falsepositives-2/03.png
new file mode 100755 (executable)
index 0000000..ba17e68
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/03.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/04.png b/core/test/data/blackbox/falsepositives-2/04.png
new file mode 100755 (executable)
index 0000000..fff2a57
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/04.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/05.png b/core/test/data/blackbox/falsepositives-2/05.png
new file mode 100755 (executable)
index 0000000..97854ba
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/05.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/06.png b/core/test/data/blackbox/falsepositives-2/06.png
new file mode 100755 (executable)
index 0000000..1bd9813
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/06.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/07.png b/core/test/data/blackbox/falsepositives-2/07.png
new file mode 100755 (executable)
index 0000000..5f97a4c
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/07.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/08.png b/core/test/data/blackbox/falsepositives-2/08.png
new file mode 100755 (executable)
index 0000000..8793d31
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/08.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/09.png b/core/test/data/blackbox/falsepositives-2/09.png
new file mode 100755 (executable)
index 0000000..fe5dbda
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/09.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/10.png b/core/test/data/blackbox/falsepositives-2/10.png
new file mode 100755 (executable)
index 0000000..a51eb34
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/10.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/11.png b/core/test/data/blackbox/falsepositives-2/11.png
new file mode 100755 (executable)
index 0000000..6330890
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/11.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/12.png b/core/test/data/blackbox/falsepositives-2/12.png
new file mode 100755 (executable)
index 0000000..a8cca0b
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/12.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/13.png b/core/test/data/blackbox/falsepositives-2/13.png
new file mode 100755 (executable)
index 0000000..1372447
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/13.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/14.png b/core/test/data/blackbox/falsepositives-2/14.png
new file mode 100755 (executable)
index 0000000..1bb0574
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/14.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/15.png b/core/test/data/blackbox/falsepositives-2/15.png
new file mode 100755 (executable)
index 0000000..4cfe8ff
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/15.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/16.png b/core/test/data/blackbox/falsepositives-2/16.png
new file mode 100755 (executable)
index 0000000..6370501
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/16.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/17.png b/core/test/data/blackbox/falsepositives-2/17.png
new file mode 100755 (executable)
index 0000000..1267e2a
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/17.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/18.png b/core/test/data/blackbox/falsepositives-2/18.png
new file mode 100755 (executable)
index 0000000..e3fabee
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/18.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/19.png b/core/test/data/blackbox/falsepositives-2/19.png
new file mode 100755 (executable)
index 0000000..e891af9
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/19.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/20.png b/core/test/data/blackbox/falsepositives-2/20.png
new file mode 100755 (executable)
index 0000000..5459411
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/20.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/21.png b/core/test/data/blackbox/falsepositives-2/21.png
new file mode 100755 (executable)
index 0000000..d0ea57b
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/21.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/22.png b/core/test/data/blackbox/falsepositives-2/22.png
new file mode 100755 (executable)
index 0000000..e868215
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/22.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/23.png b/core/test/data/blackbox/falsepositives-2/23.png
new file mode 100755 (executable)
index 0000000..8f3f8ba
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/23.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/24.png b/core/test/data/blackbox/falsepositives-2/24.png
new file mode 100755 (executable)
index 0000000..caaaf7b
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/24.png differ
diff --git a/core/test/data/blackbox/falsepositives-2/25.png b/core/test/data/blackbox/falsepositives-2/25.png
new file mode 100755 (executable)
index 0000000..f607665
Binary files /dev/null and b/core/test/data/blackbox/falsepositives-2/25.png differ
diff --git a/core/test/src/com/google/zxing/negative/FalsePositives2BlackBoxTestCase.java b/core/test/src/com/google/zxing/negative/FalsePositives2BlackBoxTestCase.java
new file mode 100644 (file)
index 0000000..8d0486b
--- /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.negative;
+
+import com.google.zxing.common.AbstractNegativeBlackBoxTestCase;
+
+/**
+ * Additional random images with high contrast patterns which should not find any barcodes.
+ *
+ * @author dswitkin@google.com (Daniel Switkin)
+ */
+public final class FalsePositives2BlackBoxTestCase extends AbstractNegativeBlackBoxTestCase {
+
+  public FalsePositives2BlackBoxTestCase() {
+    super("test/data/blackbox/falsepositives-2");
+    addTest(6, 0.0f);
+    addTest(6, 90.0f);
+    addTest(6, 180.0f);
+    addTest(6, 270.0f);
+  }
+
+}