Added a few computer-generated PDF 417 barcodes to the blackbox tests. The current code doesn't seem to handle more advanced error correction modes.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1007 59b500cc-1b3d-0410-9834-0bbf25fbcc57
Before Width: | Height: | Size: 9.6 KiB |
BIN
core/test/data/blackbox/pdf417/01.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
core/test/data/blackbox/pdf417/02.png
Normal file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/pdf417/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
12345678
|
BIN
core/test/data/blackbox/pdf417/03.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
1
core/test/data/blackbox/pdf417/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Unknown - change me!
|
BIN
core/test/data/blackbox/pdf417/04.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
1
core/test/data/blackbox/pdf417/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Unknown - change me!
|
BIN
core/test/data/blackbox/pdf417/05.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
1
core/test/data/blackbox/pdf417/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Unknown - change me!
|
BIN
core/test/data/blackbox/pdf417/06.png
Normal file
After Width: | Height: | Size: 16 KiB |
1
core/test/data/blackbox/pdf417/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Unknown - change me!
|
BIN
core/test/data/blackbox/pdf417/07.png
Normal file
After Width: | Height: | Size: 24 KiB |
1
core/test/data/blackbox/pdf417/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Unknown - change me!
|
|
@ -16,22 +16,24 @@
|
|||
|
||||
package com.google.zxing.pdf417;
|
||||
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.DecodeHintType;
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import com.google.zxing.DecodeHintType;
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
/**
|
||||
* This test consists of perfect, computer-generated images. We should have 100% passing.
|
||||
*
|
||||
* @author SITA Lab (kevin.osullivan@sita.aero)
|
||||
*/
|
||||
public final class PDF417BlackBox1TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public PDF417BlackBox1TestCase() {
|
||||
super("test/data/blackbox/pdf417", new MultiFormatReader(), BarcodeFormat.PDF417);
|
||||
addTest(1, 1, 0.0f);
|
||||
addTest(2, 2, 0.0f);
|
||||
//addTest(1, 1, 90.0f);
|
||||
//addTest(1, 1, 180.0f);
|
||||
//addTest(1, 1, 270.0f);
|
||||
|
|