DecodedBarcodeElement Class
DecodedBarcodeElement
extends the RegionObjectElement
class and represents a decoded barcode element.
Definition
Assembly: DynamsoftBarcodeReader.aar
Namespace: com.dynamsoft.dbr.intermediate_results
class DecodedBarcodeElement
Methods
Method | Description |
---|---|
getText |
Returns the text of the decoded barcode. |
setText |
Set the text of the decoded barcode. |
getBytes |
Returns the raw bytes of the decoded barcode. |
setBytes |
Set the raw bytes of the decoded barcode. |
isDPM |
Specifies if the decoded barcode is a DPM code or not. |
isMirrored |
Specifies if the decoded barcode is mirrored or not. |
getFormat |
Returns the format of the decoded barcode. |
setFormat |
Set the format of the decoded barcode. |
getFormatString |
Returns the format of the decode barcode as a string. |
getAngle |
Returns the orientation angle of the barcode. |
getModuleSize |
Returns the module size of the decoded barcode. |
getConfidence |
Returns the confidence score of the decoded barcode. |
setConfidence |
Set the confidence score of the barcode recognition result. |
getDetails |
Returns the BarcodeDetails of the decoded barcode. |
getExtendedBarcodeResults |
Returns the extended barcode results of the decoded barcode. |
The following methods are inherited from RegionObjectElement
.
Method | Description |
---|---|
getLocation |
Returns the location info of the element. |
setLocation |
Sets the location info of the element. |
getReferencedElement |
Returns the referenced element that supports the capturing of this element. |
getRegionObjectElementType |
Returns the type of the element. |
getText
Returns the text of the decoded barcode.
String getText()
Return Value
A string representing the text of the decoded barcode.
setText
Set the text of the decoded barcode. The barcode bytes are changed as well to reflect the new text.
void setText(String text);
Parameters
text
: The text to be set for the decoded barcode.
getBytes
Returns the raw bytes of the decoded barcode.
byte[] getBytes();
Return Value
A Byte object representing the raw bytes of the decoded barcode.
setBytes
Set the raw bytes of the decoded barcode. The text of the barcode will change to reflect the new barcode bytes.
void setBytes(byte[] bytes);
Parameters
bytes
: The raw bytes of the decoded barcode.
isDPM
Specifies if the decoded barcode is a Direct Part Marking (DPM) code or not. DPM codes are read by setting the DPMCodeReadingModes
.
boolean isDPM();
Return Value
A BOOL
value describing whether the barcode is a DPM code or not.
isMirrored
Specifies if the decoded barcode is mirrored or not. Mirrored barcodes are read by setting the MirrorMode
.
boolean isMirrored();
Return Value
A BOOL
value describing whether the barcode is mirrored or not.
getFormat
Returns the format of the decoded barcode as a EnumBarcodeFormat
item.
EnumBarcodeFormat getFormat();
Return Value
A EnumBarcodeFormat
item representing the format of the decoded barcode.
setFormat
Sets the format of the decoded barcode as a EnumBarcodeFormat
item.
void setFormat(EnumBarcodeFormat format);
Parameters
format
: The EnumBarcodeFormat
of the decoded barcode.
getFormatString
Returns the format of the decode barcode as a string.
String getFormatString();
Return Value
A string representing the format of the barcode.
getAngle
Returns the orientation angle of the decoded barcode should it be rotated in any way.
int getAngle();
Return Value
An integer representing the orientation angle of the barcode.
getModuleSize
Returns the module size of the decoded barcode.
int getModuleSize();
Return Value
An integer representing the module size of the decoded barcode.
getConfidence
Returns the confidence score of the decoded barcode.
int getConfidence();
Return Value
An integer representing the confidence score.
setConfidence
Sets the confidence score of the decoded barcode.
void setConfidence(int confidence);
Parameters
confidence
: The confidence score of the barcode recognition result.
getDetails
Returns the BarcodeDetails
of the decoded barcode.
BarcodeDetails getDetails();
Return Value
A BarcodeDetails
object representing the details of the decoded barcode.
getExtendedBarcodeResults
Returns the extended barcode result(s) of the decoded barcode as a ExtendedBarcodeResult
object. Please visit the ExtendedBarcodeResult
page to learn more of what information is contained there.
ExtendedBarcodeResult[] getExtendedBarcodeResults();
Return Value
An array of ExtendedBarcodeResult
that represents the extended barcode results.