Created new UPC-A blackbox test.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1554 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/upca-5/01.png
Executable file
After Width: | Height: | Size: 123 KiB |
1
core/test/data/blackbox/upca-5/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/02.png
Executable file
After Width: | Height: | Size: 112 KiB |
1
core/test/data/blackbox/upca-5/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/03.png
Executable file
After Width: | Height: | Size: 163 KiB |
1
core/test/data/blackbox/upca-5/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/04.png
Executable file
After Width: | Height: | Size: 171 KiB |
1
core/test/data/blackbox/upca-5/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/05.png
Executable file
After Width: | Height: | Size: 111 KiB |
1
core/test/data/blackbox/upca-5/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/06.png
Executable file
After Width: | Height: | Size: 112 KiB |
1
core/test/data/blackbox/upca-5/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/07.png
Executable file
After Width: | Height: | Size: 117 KiB |
1
core/test/data/blackbox/upca-5/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/08.png
Executable file
After Width: | Height: | Size: 162 KiB |
1
core/test/data/blackbox/upca-5/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/09.png
Executable file
After Width: | Height: | Size: 126 KiB |
1
core/test/data/blackbox/upca-5/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/10.png
Executable file
After Width: | Height: | Size: 164 KiB |
1
core/test/data/blackbox/upca-5/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/11.png
Executable file
After Width: | Height: | Size: 120 KiB |
1
core/test/data/blackbox/upca-5/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/12.png
Executable file
After Width: | Height: | Size: 188 KiB |
1
core/test/data/blackbox/upca-5/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/13.png
Executable file
After Width: | Height: | Size: 151 KiB |
1
core/test/data/blackbox/upca-5/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/14.png
Executable file
After Width: | Height: | Size: 125 KiB |
1
core/test/data/blackbox/upca-5/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/15.png
Executable file
After Width: | Height: | Size: 138 KiB |
1
core/test/data/blackbox/upca-5/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/16.png
Executable file
After Width: | Height: | Size: 157 KiB |
1
core/test/data/blackbox/upca-5/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/17.png
Executable file
After Width: | Height: | Size: 123 KiB |
1
core/test/data/blackbox/upca-5/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/18.png
Executable file
After Width: | Height: | Size: 135 KiB |
1
core/test/data/blackbox/upca-5/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
312547701310
|
BIN
core/test/data/blackbox/upca-5/19.png
Executable file
After Width: | Height: | Size: 165 KiB |
1
core/test/data/blackbox/upca-5/19.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/20.png
Executable file
After Width: | Height: | Size: 181 KiB |
1
core/test/data/blackbox/upca-5/20.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/21.png
Executable file
After Width: | Height: | Size: 212 KiB |
1
core/test/data/blackbox/upca-5/21.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/22.png
Executable file
After Width: | Height: | Size: 150 KiB |
1
core/test/data/blackbox/upca-5/22.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/23.png
Executable file
After Width: | Height: | Size: 209 KiB |
1
core/test/data/blackbox/upca-5/23.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/24.png
Executable file
After Width: | Height: | Size: 184 KiB |
1
core/test/data/blackbox/upca-5/24.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/25.png
Executable file
After Width: | Height: | Size: 197 KiB |
1
core/test/data/blackbox/upca-5/25.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/26.png
Executable file
After Width: | Height: | Size: 187 KiB |
1
core/test/data/blackbox/upca-5/26.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/27.png
Executable file
After Width: | Height: | Size: 165 KiB |
1
core/test/data/blackbox/upca-5/27.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/28.png
Executable file
After Width: | Height: | Size: 181 KiB |
1
core/test/data/blackbox/upca-5/28.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/29.png
Executable file
After Width: | Height: | Size: 177 KiB |
1
core/test/data/blackbox/upca-5/29.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/30.png
Executable file
After Width: | Height: | Size: 204 KiB |
1
core/test/data/blackbox/upca-5/30.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/31.png
Executable file
After Width: | Height: | Size: 128 KiB |
1
core/test/data/blackbox/upca-5/31.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/32.png
Executable file
After Width: | Height: | Size: 152 KiB |
1
core/test/data/blackbox/upca-5/32.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/33.png
Executable file
After Width: | Height: | Size: 183 KiB |
1
core/test/data/blackbox/upca-5/33.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/34.png
Executable file
After Width: | Height: | Size: 191 KiB |
1
core/test/data/blackbox/upca-5/34.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
BIN
core/test/data/blackbox/upca-5/35.png
Executable file
After Width: | Height: | Size: 141 KiB |
1
core/test/data/blackbox/upca-5/35.txt
Normal file
|
@ -0,0 +1 @@
|
|||
625034201058
|
|
@ -36,6 +36,7 @@ import com.google.zxing.oned.UPCABlackBox1TestCase;
|
|||
import com.google.zxing.oned.UPCABlackBox2TestCase;
|
||||
import com.google.zxing.oned.UPCABlackBox3ReflectiveTestCase;
|
||||
import com.google.zxing.oned.UPCABlackBox4TestCase;
|
||||
import com.google.zxing.oned.UPCABlackBox5TestCase;
|
||||
import com.google.zxing.oned.UPCEBlackBox1TestCase;
|
||||
import com.google.zxing.oned.UPCEBlackBox2TestCase;
|
||||
import com.google.zxing.oned.UPCEBlackBox3ReflectiveTestCase;
|
||||
|
@ -80,6 +81,7 @@ public final class AllPositiveBlackBoxTester {
|
|||
new UPCABlackBox2TestCase(),
|
||||
new UPCABlackBox3ReflectiveTestCase(),
|
||||
new UPCABlackBox4TestCase(),
|
||||
new UPCABlackBox5TestCase(),
|
||||
new UPCEBlackBox1TestCase(),
|
||||
new UPCEBlackBox2TestCase(),
|
||||
new UPCEBlackBox3ReflectiveTestCase(),
|
||||
|
@ -115,6 +117,7 @@ public final class AllPositiveBlackBoxTester {
|
|||
// new UPCABlackBox2TestCase(),
|
||||
// new UPCABlackBox3ReflectiveTestCase(),
|
||||
// new UPCABlackBox4TestCase(),
|
||||
// new UPCABlackBox5TestCase(),
|
||||
// new UPCEBlackBox1TestCase(),
|
||||
// new UPCEBlackBox2TestCase(),
|
||||
// new UPCEBlackBox3ReflectiveTestCase(),
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* 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.BarcodeFormat;
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
/**
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class UPCABlackBox5TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public UPCABlackBox5TestCase() {
|
||||
super("test/data/blackbox/upca-5", new MultiFormatReader(), BarcodeFormat.UPC_A);
|
||||
addTest(19, 22, 0.0f);
|
||||
addTest(21, 22, 180.0f);
|
||||
}
|
||||
|
||||
}
|