com.java4less.vision.pdf417
Class PDF417Data

java.lang.Object
  |
  +--com.java4less.vision.pdf417.PDF417Data

public class PDF417Data
extends java.lang.Object

This class contains the information about a read barcode


Field Summary
static int MACROPDF_ADRESSEE
           
static int MACROPDF_CHECKSUM
           
static int MACROPDF_FILEID
           
static int MACROPDF_FILENAME
           
static int MACROPDF_FILESIZE
           
static int MACROPDF_SEGMENT
           
static int MACROPDF_SEGMENT_COUNT
           
static int MACROPDF_SENDER
           
static int MACROPDF_TIMESTAMP
           
 
Constructor Summary
PDF417Data(int[] v, int x, int y, java.lang.Object[] fields, int errorsDetected, int level)
          internal use only
 
Method Summary
 int getConfidence()
          0 means no error has been deteced.
 int getEClevel()
          return maximum number of errors that can be corrected
 java.lang.Object getMacroPDFField(int f)
          return value of a macro pdf field.
 int[] getValue()
          scanned value.
 int getX()
          position of the barcode in the image
 int getY()
          position of the barcode in the image
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MACROPDF_SEGMENT

public static int MACROPDF_SEGMENT

MACROPDF_FILEID

public static int MACROPDF_FILEID

MACROPDF_FILENAME

public static int MACROPDF_FILENAME

MACROPDF_SEGMENT_COUNT

public static int MACROPDF_SEGMENT_COUNT

MACROPDF_TIMESTAMP

public static int MACROPDF_TIMESTAMP

MACROPDF_SENDER

public static int MACROPDF_SENDER

MACROPDF_ADRESSEE

public static int MACROPDF_ADRESSEE

MACROPDF_FILESIZE

public static int MACROPDF_FILESIZE

MACROPDF_CHECKSUM

public static int MACROPDF_CHECKSUM
Constructor Detail

PDF417Data

public PDF417Data(int[] v,
                  int x,
                  int y,
                  java.lang.Object[] fields,
                  int errorsDetected,
                  int level)
internal use only

Parameters:
v -
x -
y -
fields -
Method Detail

getConfidence

public int getConfidence()
0 means no error has been deteced. A value > 0 means errors detected and corrected. A value < -1 means errors were not corrected

Returns:

getEClevel

public int getEClevel()
return maximum number of errors that can be corrected

Returns:

getMacroPDFField

public java.lang.Object getMacroPDFField(int f)
return value of a macro pdf field.

Parameters:
f -
Returns:

getValue

public int[] getValue()
scanned value. Non printable characters will have the format ~dxxx where xxx is the ascii value of the character.

Returns:

getX

public int getX()
position of the barcode in the image

Returns:

getY

public int getY()
position of the barcode in the image

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object