Added 41 real world UPC-E tests. We need to improve regular decoding here: it gets 17/41, but try harder gets 28/41.
git-svn-id: https://zxing.googlecode.com/svn/trunk@508 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/upce-2/01.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
1
core/test/data/blackbox/upce-2/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/02.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/03.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/upce-2/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/04.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/05.jpg
Executable file
After Width: | Height: | Size: 14 KiB |
1
core/test/data/blackbox/upce-2/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/06.jpg
Executable file
After Width: | Height: | Size: 12 KiB |
1
core/test/data/blackbox/upce-2/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/07.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
05096893
|
BIN
core/test/data/blackbox/upce-2/08.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/09.jpg
Executable file
After Width: | Height: | Size: 12 KiB |
1
core/test/data/blackbox/upce-2/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/10.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/11.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/12.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/13.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/14.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/15.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04963406
|
BIN
core/test/data/blackbox/upce-2/16.jpg
Executable file
After Width: | Height: | Size: 9.2 KiB |
1
core/test/data/blackbox/upce-2/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/17.jpg
Executable file
After Width: | Height: | Size: 8.4 KiB |
1
core/test/data/blackbox/upce-2/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/18.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/upce-2/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/19.jpg
Executable file
After Width: | Height: | Size: 8.9 KiB |
1
core/test/data/blackbox/upce-2/19.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/20.jpg
Executable file
After Width: | Height: | Size: 8.4 KiB |
1
core/test/data/blackbox/upce-2/20.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/21.jpg
Executable file
After Width: | Height: | Size: 9.7 KiB |
1
core/test/data/blackbox/upce-2/21.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/22.jpg
Executable file
After Width: | Height: | Size: 8.8 KiB |
1
core/test/data/blackbox/upce-2/22.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/23.jpg
Executable file
After Width: | Height: | Size: 8.3 KiB |
1
core/test/data/blackbox/upce-2/23.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/24.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/24.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/25.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/25.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/26.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/26.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/27.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/27.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/28.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/upce-2/28.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/29.jpg
Executable file
After Width: | Height: | Size: 9.4 KiB |
1
core/test/data/blackbox/upce-2/29.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/30.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/30.txt
Normal file
|
@ -0,0 +1 @@
|
|||
04124498
|
BIN
core/test/data/blackbox/upce-2/31.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/31.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/32.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/32.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/33.jpg
Executable file
After Width: | Height: | Size: 7.5 KiB |
1
core/test/data/blackbox/upce-2/33.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/34.jpg
Executable file
After Width: | Height: | Size: 12 KiB |
1
core/test/data/blackbox/upce-2/34.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/35.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/35.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/36.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/upce-2/36.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/37.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/upce-2/37.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/38.jpg
Executable file
After Width: | Height: | Size: 8.3 KiB |
1
core/test/data/blackbox/upce-2/38.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/39.jpg
Executable file
After Width: | Height: | Size: 9.1 KiB |
1
core/test/data/blackbox/upce-2/39.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/40.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/upce-2/40.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
BIN
core/test/data/blackbox/upce-2/41.jpg
Executable file
After Width: | Height: | Size: 8.6 KiB |
1
core/test/data/blackbox/upce-2/41.txt
Normal file
|
@ -0,0 +1 @@
|
|||
01264904
|
|
@ -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 UPCEBlackBox2TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public UPCEBlackBox2TestCase() {
|
||||
super(new File("test/data/blackbox/upce-2"), new MultiFormatReader(), BarcodeFormat.UPC_E);
|
||||
addTest(17, 28, 0.0f);
|
||||
addTest(19, 28, 180.0f);
|
||||
}
|
||||
|
||||
}
|