Added two new blackbox tests of blurry barcodes taken with a fixed-focus mobile phone. Also fixed several other 1D blackbox tests that were off by an image here and there.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1721 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/ean13-5/01.png
Executable file
After Width: | Height: | Size: 30 KiB |
1
core/test/data/blackbox/ean13-5/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780679601050
|
BIN
core/test/data/blackbox/ean13-5/02.png
Executable file
After Width: | Height: | Size: 30 KiB |
1
core/test/data/blackbox/ean13-5/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780679601050
|
BIN
core/test/data/blackbox/ean13-5/03.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/ean13-5/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780679601050
|
BIN
core/test/data/blackbox/ean13-5/04.png
Executable file
After Width: | Height: | Size: 33 KiB |
1
core/test/data/blackbox/ean13-5/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780679601050
|
BIN
core/test/data/blackbox/ean13-5/05.png
Executable file
After Width: | Height: | Size: 33 KiB |
1
core/test/data/blackbox/ean13-5/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780679601050
|
BIN
core/test/data/blackbox/ean13-5/06.png
Executable file
After Width: | Height: | Size: 31 KiB |
1
core/test/data/blackbox/ean13-5/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/07.png
Executable file
After Width: | Height: | Size: 33 KiB |
1
core/test/data/blackbox/ean13-5/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/08.png
Executable file
After Width: | Height: | Size: 28 KiB |
1
core/test/data/blackbox/ean13-5/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/09.png
Executable file
After Width: | Height: | Size: 34 KiB |
1
core/test/data/blackbox/ean13-5/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/10.png
Executable file
After Width: | Height: | Size: 31 KiB |
1
core/test/data/blackbox/ean13-5/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/11.png
Executable file
After Width: | Height: | Size: 36 KiB |
1
core/test/data/blackbox/ean13-5/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/12.png
Executable file
After Width: | Height: | Size: 31 KiB |
1
core/test/data/blackbox/ean13-5/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780345460950
|
BIN
core/test/data/blackbox/ean13-5/13.png
Executable file
After Width: | Height: | Size: 27 KiB |
1
core/test/data/blackbox/ean13-5/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/ean13-5/14.png
Executable file
After Width: | Height: | Size: 28 KiB |
1
core/test/data/blackbox/ean13-5/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/ean13-5/15.png
Executable file
After Width: | Height: | Size: 30 KiB |
1
core/test/data/blackbox/ean13-5/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/ean13-5/16.png
Executable file
After Width: | Height: | Size: 35 KiB |
1
core/test/data/blackbox/ean13-5/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/ean13-5/17.png
Executable file
After Width: | Height: | Size: 37 KiB |
1
core/test/data/blackbox/ean13-5/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/ean13-5/18.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/ean13-5/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
9780446579803
|
BIN
core/test/data/blackbox/upca-6/01.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/upca-6/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/02.png
Executable file
After Width: | Height: | Size: 28 KiB |
1
core/test/data/blackbox/upca-6/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/03.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/upca-6/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/04.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/upca-6/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/05.png
Executable file
After Width: | Height: | Size: 29 KiB |
1
core/test/data/blackbox/upca-6/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/06.png
Executable file
After Width: | Height: | Size: 29 KiB |
1
core/test/data/blackbox/upca-6/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
071831007995
|
BIN
core/test/data/blackbox/upca-6/07.png
Executable file
After Width: | Height: | Size: 39 KiB |
1
core/test/data/blackbox/upca-6/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/08.png
Executable file
After Width: | Height: | Size: 40 KiB |
1
core/test/data/blackbox/upca-6/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/09.png
Executable file
After Width: | Height: | Size: 36 KiB |
1
core/test/data/blackbox/upca-6/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/10.png
Executable file
After Width: | Height: | Size: 35 KiB |
1
core/test/data/blackbox/upca-6/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/11.png
Executable file
After Width: | Height: | Size: 33 KiB |
1
core/test/data/blackbox/upca-6/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/12.png
Executable file
After Width: | Height: | Size: 38 KiB |
1
core/test/data/blackbox/upca-6/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
605482330012
|
BIN
core/test/data/blackbox/upca-6/13.png
Executable file
After Width: | Height: | Size: 32 KiB |
1
core/test/data/blackbox/upca-6/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/14.png
Executable file
After Width: | Height: | Size: 29 KiB |
1
core/test/data/blackbox/upca-6/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/15.png
Executable file
After Width: | Height: | Size: 30 KiB |
1
core/test/data/blackbox/upca-6/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/16.png
Executable file
After Width: | Height: | Size: 31 KiB |
1
core/test/data/blackbox/upca-6/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/17.png
Executable file
After Width: | Height: | Size: 31 KiB |
1
core/test/data/blackbox/upca-6/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/18.png
Executable file
After Width: | Height: | Size: 28 KiB |
1
core/test/data/blackbox/upca-6/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
BIN
core/test/data/blackbox/upca-6/19.png
Executable file
After Width: | Height: | Size: 28 KiB |
1
core/test/data/blackbox/upca-6/19.txt
Normal file
|
@ -0,0 +1 @@
|
|||
073333531084
|
|
@ -27,8 +27,8 @@ public final class EAN13BlackBox1TestCase extends AbstractBlackBoxTestCase {
|
|||
|
||||
public EAN13BlackBox1TestCase() {
|
||||
super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13);
|
||||
addTest(30, 32, 0.0f);
|
||||
addTest(27, 32, 180.0f);
|
||||
addTest(29, 32, 0.0f);
|
||||
addTest(28, 32, 180.0f);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* Copyright 2011 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;
|
||||
|
||||
/**
|
||||
* A set of blurry images taken with a fixed-focus device.
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class EAN13BlackBox5BlurryTestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public EAN13BlackBox5BlurryTestCase() {
|
||||
super("test/data/blackbox/ean13-5", new MultiFormatReader(), BarcodeFormat.EAN_13);
|
||||
addTest(0, 0, 0.0f);
|
||||
addTest(0, 0, 180.0f);
|
||||
}
|
||||
|
||||
}
|
|
@ -27,8 +27,8 @@ 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);
|
||||
addTest(19, 23, 0.0f);
|
||||
addTest(20, 23, 180.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* A set of blurry images taken with a fixed-focus device.
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class UPCABlackBox6BlurryTestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public UPCABlackBox6BlurryTestCase() {
|
||||
super("test/data/blackbox/upca-6", new MultiFormatReader(), BarcodeFormat.UPC_A);
|
||||
addTest(0, 0, 0.0f);
|
||||
addTest(0, 0, 180.0f);
|
||||
}
|
||||
|
||||
}
|