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
This commit is contained in:
dswitkin@google.com 2011-05-13 21:42:52 +00:00
parent 51b3d726e3
commit 8f924716f0
47 changed files with 38 additions and 11 deletions

View file

@ -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"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View file

@ -0,0 +1 @@
This is a real world Aztec barcode test.

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View file

@ -0,0 +1 @@
mailto:zxing@googlegroups.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View file

@ -0,0 +1 @@
http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/URIResultHandler.java

View file

@ -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);
}
}
}

View file

@ -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);
}
}