DecodedBarcodeElement Class
The DecodedBarcodeElement class represents a decoded barcode element. It inherits from the RegionObjectElement class and provides additional functionality for retrieving information about the decoded barcode.
Definition
Package: com.dynamsoft.dbr.intermediate_results
Inheritance: RegionObjectElement -> DecodedBarcodeElement
public class DecodedBarcodeElement extends RegionObjectElement
Methods
| Method | Description |
|---|---|
DecodedBarcodeElement |
Initializes a new instance of the DecodedBarcodeElement class. |
getFormat |
Gets the format of the barcode. |
getFormatString |
Gets the string representation of the barcode format. |
getText |
Gets the text of the decoded barcode. |
getBytes |
Gets the raw bytes of the decoded barcode. |
getDetails |
Gets the details of the decoded barcode. |
isDPM |
Determines whether the decoded barcode is a DPM (Direct Part Marking) code. |
isMirrored |
Determines whether the decoded barcode is mirrored. |
getAngle |
Gets the orientation angle of the barcode. |
getModuleSize |
Gets the module size of the barcode. |
getConfidence |
Gets the confidence score of the barcode recognition result. |
getExtendedBarcodeResultsCount |
Gets the number of extended barcode results for the decoded barcode. |
getExtendedBarcodeResult |
Gets the extended barcode result at the specified index for the decoded barcode. |
getExtendedBarcodeResults |
Gets all extended barcode results for the decoded barcode. |
setFormat |
Sets the format of the barcode. |
setText |
Sets the text of the decoded barcode. |
setBytes |
Sets the raw bytes of the decoded barcode. |
setConfidence |
Sets the confidence score of the barcode recognition result. |
setLocation |
Sets the location of the decoded barcode. |
DecodedBarcodeElement
Initializes a new instance of the DecodedBarcodeElement class.
public DecodedBarcodeElement()
getFormat
Gets the format of the barcode.
public @EnumBarcodeFormat long getFormat()
Return value
Returns the format of the barcode. This is one of the values of the EnumBarcodeFormat enumeration.
See Also
getFormatString
Gets the string representation of the barcode format.
public String getFormatString()
Return value
Returns the string representation of the barcode format.
getText
Gets the text of the decoded barcode.
public String getText()
Return value
Returns a string representing the text of the decoded barcode.
getBytes
Gets the raw bytes of the decoded barcode.
public byte[] getBytes()
Return value
Returns the raw bytes of the decoded barcode.
getDetails
Gets the details of the decoded barcode.
public BarcodeDetails getDetails()
Return value
Returns the details of the decoded barcode.
See Also
isDPM
Determines whether the decoded barcode is a DPM (Direct Part Marking) code.
public boolean isDPM()
Return value
Returns true if the decoded barcode is a DPM code, false otherwise.
isMirrored
Determines whether the decoded barcode is mirrored.
public boolean isMirrored()
Return value
Returns true if the decoded barcode is mirrored, false otherwise.
getAngle
Gets the orientation angle of the barcode.
public int getAngle()
Return value
Returns the orientation angle of the barcode.
getModuleSize
Gets the module size of the barcode.
public int getModuleSize()
Return value
Returns the module size of the barcode.
getConfidence
Gets the confidence score of the barcode recognition result.
public int getConfidence()
Return value
Returns the confidence score of the barcode recognition result.
getExtendedBarcodeResultsCount
Gets the number of extended barcode results for the decoded barcode.
public int getExtendedBarcodeResultsCount()
Return value
Returns the number of extended barcode results for the decoded barcode.
getExtendedBarcodeResult
Gets the extended barcode result at the specified index for the decoded barcode.
public ExtendedBarcodeResult getExtendedBarcodeResult(int index)
Parameters
index The index of the extended barcode result to retrieve.
Return value
Returns an ExtendedBarcodeResult object at the specified index for the decoded barcode.
See Also
getExtendedBarcodeResults
Gets all extended barcode results for the decoded barcode.
public ExtendedBarcodeResult[] getExtendedBarcodeResults()
Return value
Returns an array of ExtendedBarcodeResult objects for the decoded barcode.
See Also
setFormat
Sets the format of the barcode.
public void setFormat(@EnumBarcodeFormat long format)
Parameters
format The format of the barcode. This is one of the values of the EnumBarcodeFormat enumeration.
See Also
setText
Sets the text of the barcode.
public void setText(String text)
Parameters
text The text of the barcode.
setBytes
Sets the raw bytes of the barcode.
public void setBytes(byte[] bytes)
Parameters
bytes The raw bytes of the barcode.
setConfidence
Sets the confidence of the barcode.
public void setConfidence(int confidence)
Parameters
confidence The confidence of the barcode.
setLocation
Sets the location of the decoded barcode.
public void setLocation(Quadrilateral location) throws BarcodeReaderException
Parameters
location The location of the decoded barcode.
Exceptions
BarcodeReaderException If an error occurs while setting the location.
See Also