BarCodeConfidence

Inheritance: java.lang.Object

public final class BarCodeConfidence

Contains recognition confidence level


This sample shows how BarCodeConfidence changed, depending on barcode type
 
 //Moderate confidence
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12345");
 generator.save("c:\\test.png");
 BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128);
     for(BarCodeResult result : reader.readBarCodes())
     {
         System.out.println("BarCode Type: " + result.getCodeTypeName());
         System.out.println("BarCode CodeText: " + result.getCodeText());
         System.out.println("BarCode Confidence: " + result.getConfidence());
         System.out.println("BarCode ReadingQuality: " + result.getReadingQuality());
     }
 //Strong confidence
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR, "12345");
 generator.save("c:\\test.png");
 BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.CODE_39_STANDARD, DecodeType.QR);
     for(BarCodeResult result : reader.readBarCodes())
     {
         System.out.println("BarCode Type: " + result.getCodeTypeName());
         System.out.println("BarCode CodeText: " + result.getCodeText());
         System.out.println("BarCode Confidence: " + result.getConfidence());
         System.out.println("BarCode ReadingQuality: " + result.getReadingQuality());
     }

Fields

FieldDescription
MODERATERecognition confidence of barcode (mostly 1D barcodes) with weak checksumm or even without it.
NONERecognition confidence of barcode where codetext was not recognized correctly or barcode was detected as posible fakeBarCodeExtendedParameters
STRONGRecognition confidence which was confirmed with BCH codes like Reed\u2013Solomon.

Methods

MethodDescription
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MODERATE

public static final int MODERATE

Recognition confidence of barcode (mostly 1D barcodes) with weak checksumm or even without it. Could contains some misrecognitions in codetext or even fake recognitions if is low

NONE

public static final int NONE

Recognition confidence of barcode where codetext was not recognized correctly or barcode was detected as posible fakeBarCodeExtendedParameters

STRONG

public static final int STRONG

Recognition confidence which was confirmed with BCH codes like Reed\u2013Solomon. There must not be errors in read codetext or fake recognitions

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int