DecodedBarcodeElement Class
The DecodedBarcodeElement
class represents a decoded barcode element. It inherits from the RegionObjectElement
class class and provides additional functionality for retrieving information about the decoded barcode.
Definition
Assembly: DynamsoftBarcodeReader.aar
Namespace: com.dynamsoft.dbr.intermediate_results
class DecodedBarcodeElement
Methods
Method | Description |
---|---|
getText |
Get the text of the decoded barcode. |
setText |
Set the text of the decoded barcode. |
getBytes |
Get the raw bytes of the decoded barcode. |
setBytes |
Set the raw bytes of the decoded barcode. |
isDPM |
Check whether the barcode is a DPM (Direct Part Marking) barcode (decoded by DPMReadingMode). |
isMirrored |
Check whether the barcode is mirrored (decoded by MirrorMode). |
getFormat |
Get the format of the decoded barcode as a barcode format enumeration. |
setFormat |
Set the format of the decoded barcode. |
getFormatString |
Get the format of the decode barcode as a string. |
getAngle |
The orientation angle of the barcode. |
getModuleSize |
Get the module size of the decoded barcode. |
getConfidence |
Get the confidence score of the barcode recognition result. |
setConfidence |
Set the confidence score of the barcode recognition result. |
getDetails |
Get the details of the decoded barcode. |
getExtendedBarcodeResults |
Get an array of extended barcode results. |
Inherited Methods
The following methods are inherited from class 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
Get the text of the decoded barcode.
String getText()
Return Value
The text of the decoded barcode.
setText
Set the text of the decoded barcode.
void setText(String text);
Parameters
text
: The text of the decoded barcode.
getBytes
Get the raw bytes of the decoded barcode.
byte[] getBytes();
Return Value
The raw bytes of the decoded barcode.
setBytes
Set the raw bytes of the decoded barcode.
void setBytes(byte[] bytes);
Parameters
bytes
: The raw bytes of the decoded barcode.
isDPM
Check whether the barcode is a DPM (Direct Part Marking) barcode (decoded by DPMReadingMode).
boolean isDPM();
Return Value
If true, the barcode is a DPM barcode. Otherwise, the barcode isn’t a DPM barcode.
isMirrored
Check whether the barcode is mirrored (decoded by MirrorMode).
boolean isMirrored();
Return Value
If true, the barcode is mirrored. Otherwise, the barcode isn’t mirrored.
getFormat
Get the format of the decoded barcode as a barcode format enumeration.
long getFormat();
Return Value
The format of the decoded barcode as a barcode format enumeration.
setFormat
Set the format of the decoded barcode.
void setFormat(long format);
Parameters
format
: The format of the decoded barcode.
getFormatString
Get the format of the decode barcode as a string.
String getFormatString();
Return Value
The format of the decode barcode as a string.
getAngle
Get the orientation angle of the barcode.
int getAngle();
Return Value
The orientation angle of the barcode.
getModuleSize
Get the module size of the decoded barcode.
int getModuleSize();
Return Value
The module size of the decoded barcode.
getConfidence
Get the confidence score of the barcode recognition result.
int getConfidence();
Return Value
The confidence score of the barcode recognition result.
setConfidence
Set the confidence score of the barcode recognition result.
void setConfidence(int confidence);
Parameters
confidence
: The confidence score of the barcode recognition result.
getDetails
Get the details of the decoded barcode.
BarcodeDetails getDetails();
Return Value
The details of the decoded barcode.
getExtendedBarcodeResults
Get an array of extended barcode results.
ExtendedBarcodeResult[] getExtendedBarcodeResults();
Return Value
The array that represent the extended barcode results.