Created a new blackbox test of real world Aztec images taken with a mobile phone. We're only decoding 9% at the moment.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1771 59b500cc-1b3d-0410-9834-0bbf25fbcc57
|
@ -120,6 +120,9 @@
|
|||
|
||||
<target name="test-blackbox" depends="build-test">
|
||||
<parallel failonany="true">
|
||||
<antcall target="test-blackbox-subset">
|
||||
<param name="subdir" value="aztec"/>
|
||||
</antcall>
|
||||
<antcall target="test-blackbox-subset">
|
||||
<param name="subdir" value="datamatrix"/>
|
||||
</antcall>
|
||||
|
@ -150,7 +153,7 @@
|
|||
<assertions>
|
||||
<enable/>
|
||||
</assertions>
|
||||
<jvmarg value="-Djava.awt.headless=true"/>
|
||||
<jvmarg value="-Djava.awt.headless=true"/>
|
||||
<batchtest>
|
||||
<fileset dir="test/src">
|
||||
<include name="**/${subdir}/*BlackBox*TestCase.java"/>
|
||||
|
|
BIN
core/test/data/blackbox/aztec-2/01.png
Executable file
After Width: | Height: | Size: 80 KiB |
1
core/test/data/blackbox/aztec-2/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/02.png
Executable file
After Width: | Height: | Size: 84 KiB |
1
core/test/data/blackbox/aztec-2/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/03.png
Executable file
After Width: | Height: | Size: 82 KiB |
1
core/test/data/blackbox/aztec-2/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/04.png
Executable file
After Width: | Height: | Size: 106 KiB |
1
core/test/data/blackbox/aztec-2/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/05.png
Executable file
After Width: | Height: | Size: 104 KiB |
1
core/test/data/blackbox/aztec-2/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/06.png
Executable file
After Width: | Height: | Size: 87 KiB |
1
core/test/data/blackbox/aztec-2/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/07.png
Executable file
After Width: | Height: | Size: 106 KiB |
1
core/test/data/blackbox/aztec-2/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/08.png
Executable file
After Width: | Height: | Size: 99 KiB |
1
core/test/data/blackbox/aztec-2/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a real world Aztec barcode test.
|
BIN
core/test/data/blackbox/aztec-2/09.png
Executable file
After Width: | Height: | Size: 73 KiB |
1
core/test/data/blackbox/aztec-2/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/10.png
Executable file
After Width: | Height: | Size: 64 KiB |
1
core/test/data/blackbox/aztec-2/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/11.png
Executable file
After Width: | Height: | Size: 82 KiB |
1
core/test/data/blackbox/aztec-2/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/12.png
Executable file
After Width: | Height: | Size: 70 KiB |
1
core/test/data/blackbox/aztec-2/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/13.png
Executable file
After Width: | Height: | Size: 72 KiB |
1
core/test/data/blackbox/aztec-2/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/14.png
Executable file
After Width: | Height: | Size: 80 KiB |
1
core/test/data/blackbox/aztec-2/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/15.png
Executable file
After Width: | Height: | Size: 92 KiB |
1
core/test/data/blackbox/aztec-2/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
mailto:zxing@googlegroups.com
|
BIN
core/test/data/blackbox/aztec-2/16.png
Executable file
After Width: | Height: | Size: 109 KiB |
1
core/test/data/blackbox/aztec-2/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/17.png
Executable file
After Width: | Height: | Size: 101 KiB |
1
core/test/data/blackbox/aztec-2/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/18.png
Executable file
After Width: | Height: | Size: 112 KiB |
1
core/test/data/blackbox/aztec-2/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/19.png
Executable file
After Width: | Height: | Size: 114 KiB |
1
core/test/data/blackbox/aztec-2/19.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/20.png
Executable file
After Width: | Height: | Size: 119 KiB |
1
core/test/data/blackbox/aztec-2/20.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/21.png
Executable file
After Width: | Height: | Size: 124 KiB |
1
core/test/data/blackbox/aztec-2/21.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
BIN
core/test/data/blackbox/aztec-2/22.png
Executable file
After Width: | Height: | Size: 118 KiB |
1
core/test/data/blackbox/aztec-2/22.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2008 ZXing authors
|
||||
* 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.
|
||||
|
@ -20,16 +20,18 @@ import com.google.zxing.BarcodeFormat;
|
|||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
/**
|
||||
* @author David Olivier
|
||||
* A test of Aztec barcodes under real world lighting conditions, taken with a mobile phone.
|
||||
*
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class AztecBlackBox2TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public AztecBlackBox2TestCase() {
|
||||
super("test/data/blackbox/aztec-2", new AztecReader(), BarcodeFormat.AZTEC);
|
||||
addTest(1, 1, 0.0f);
|
||||
addTest(1, 1, 90.0f);
|
||||
addTest(1, 1, 180.0f);
|
||||
addTest(2, 2, 0.0f);
|
||||
addTest(2, 2, 90.0f);
|
||||
addTest(3, 3, 180.0f);
|
||||
addTest(1, 1, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,10 +27,10 @@ public final class FalsePositives2BlackBoxTestCase extends AbstractNegativeBlack
|
|||
|
||||
public FalsePositives2BlackBoxTestCase() {
|
||||
super("test/data/blackbox/falsepositives-2");
|
||||
addTest(6, 0.0f);
|
||||
addTest(6, 90.0f);
|
||||
addTest(6, 180.0f);
|
||||
addTest(6, 270.0f);
|
||||
addTest(7, 0.0f);
|
||||
addTest(7, 90.0f);
|
||||
addTest(7, 180.0f);
|
||||
addTest(7, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|