Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 getReadingQuality ()
 
 getConfidence ()
 
 getCodeText ()
 
 getCodeBytes ()
 
 getCodeType ()
 
 getCodeTypeName ()
 
 getRegion ()
 
 getExtended ()
 
 equals (BarCodeResult $other)
 
 hashCode ()
 
 toString ()
 
 deepClone ()
 
 __construct ($javaClass)
 

Static Public Member Functions

static op_Equality (BarCodeResult $first, BarCodeResult $second)
 
static op_Inequality (BarCodeResult $first, BarCodeResult $second)
 

Detailed Description

Stores recognized barcode data like SingleDecodeType type,

string

codetext, BarCodeRegionParameters region and other parameters This sample shows how to obtain BarCodeResult. $generator = new BarcodeGenerator(EncodeTypes::Code128, "12345"); $generator->save("test.png"); $reader = new BarCodeReader("test.png", DecodeType::CODE_39_STANDARD, DecodeType::CODE_128); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeTypeName()); print("BarCode CodeText: ".$result->getCodeText()); print("BarCode Confidence: ".$result->getConfidence()); print("BarCode ReadingQuality: ".$result->getReadingQuality()); print("BarCode Angle: ".$result->getRegion()->getAngle()); }

Constructor & Destructor Documentation

◆ __construct()

__construct (   $javaClass)

Creates a a copy of the BarCodeResult class.

Parameters
resultAn copy BarCodeResult instance.

Member Function Documentation

◆ deepClone()

deepClone ( )

Creates a copy of BarCodeResult class.

Returns
Returns copy of BarCodeResult class.

◆ equals()

equals ( BarCodeResult  $other)

Returns a value indicating whether this instance is equal to a specified BarCodeResult value.

Parameters
otherAn BarCodeResult value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.

◆ getCodeBytes()

getCodeBytes ( )

Gets the encoded code bytes Value: The code bytes of the barcode

◆ getCodeText()

getCodeText ( )

Gets the code text Value: The code text of the barcode

◆ getCodeType()

getCodeType ( )

Gets the barcode type Value: The type information of the recognized barcode

◆ getCodeTypeName()

getCodeTypeName ( )

Gets the name of the barcode type Value: The type name of the recognized barcode

◆ getConfidence()

getConfidence ( )

Gets recognition confidence level of the recognized barcode Value: BarCodeConfidence.Strong does not have fakes or misrecognitions, BarCodeConfidence.Moderate could sometimes have fakes or incorrect codetext because this confidence level for barcodews with weak cheksum or even without it, BarCodeConfidence.None always has incorrect codetext and could be fake recognitions

◆ getExtended()

getExtended ( )

Gets extended parameters of recognized barcode Value: The extended parameters of recognized barcode

◆ getReadingQuality()

getReadingQuality ( )

Gets the reading quality. Works for 1D and postal barcodes. Value: The reading quality percent

◆ getRegion()

getRegion ( )

Gets the barcode region Value: The region of the recognized barcode

◆ hashCode()

hashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

◆ op_Equality()

static op_Equality ( BarCodeResult  $first,
BarCodeResult  $second 
)
static

Returns a value indicating whether the first BarCodeResult value is equal to the second.

Parameters
$firstA first compared value
$secondA second compared value
Returns
true if first has the same value as second; otherwise, false.

◆ op_Inequality()

static op_Inequality ( BarCodeResult  $first,
BarCodeResult  $second 
)
static

Returns a value indicating if the first BarCodeResult value is different from the second.

Parameters
firstA first compared value
secondA second compared value
Returns
true if first has the different value from second; otherwise, false.

◆ toString()

toString ( )

Returns a human-readable string representation of this BarCodeResult.

Returns
A string that represents this BarCodeResult.