diff --git a/core/test/data/blackbox/falsepositives-2/01.png b/core/test/data/blackbox/falsepositives-2/01.png new file mode 100755 index 000000000..adc716448 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 index 000000000..c9e559ff6 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 index 000000000..ba17e689b 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 index 000000000..fff2a5713 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 index 000000000..97854ba1b 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 index 000000000..1bd9813e9 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 index 000000000..5f97a4cf9 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 index 000000000..8793d3156 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 index 000000000..fe5dbdafc 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 index 000000000..a51eb3471 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 index 000000000..633089006 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 index 000000000..a8cca0b79 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 index 000000000..137244769 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 index 000000000..1bb05749f 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 index 000000000..4cfe8ff5f 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 index 000000000..637050191 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 index 000000000..1267e2a28 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 index 000000000..e3fabeecf 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 index 000000000..e891af953 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 index 000000000..54594115d 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 index 000000000..d0ea57b31 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 index 000000000..e86821591 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 index 000000000..8f3f8ba5a 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 index 000000000..caaaf7b1a 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 index 000000000..f60766587 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 index 000000000..8d0486b06 --- /dev/null +++ b/core/test/src/com/google/zxing/negative/FalsePositives2BlackBoxTestCase.java @@ -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); + } + +}