BarcodeResultItem Class
The BarcodeResultItem
class represents a barcode result item decoded by the barcode reader. It is derived from CapturedResultItem
.
Definition
Assembly: DynamsoftBarcodeReader.aar
Namespace: com.dynamsoft.dbr
class BarcodeResultItem extends CapturedResultItem
Methods
Method | Description |
---|---|
getFormat |
Get the format of the barcode. |
getFormatString |
Get the format text of the barcode. |
getText |
Get the decode text of the barcode. |
getBytes |
Get the decode byte of the barcode. |
getLocation |
Get the location of the barcode. |
getConfidence |
Get the confidence of the decoding result. |
getAngle |
Get the rotation angle of the barcode. |
getModuleSize |
Get the module size of the barcode. |
getDetails |
Get the details of the decoded barcode. |
isDPM |
Check whether the barcode is a DPM barcode. |
isMirrored |
Check whether the barcode is mirrored. |
Inherited Methods
The following methods are inherited from class CapturedResultItem
.
Method | Description |
---|---|
getType |
Get the type of the captured result item. |
getReferencedItem |
Get the referenced captured result item. The reference dependencies is defined in the Capture Vision settings. |
getFormat
Get the format of the barcode. This format will be one of the EnumBarcodeFormat
items.
long getFormat()
Return Value
The format of the barcode.
getFormatString
Get the format of the barcode, but as text instead of a BarcodeFormat
item.
String getFormatString()
Return Value
The format text of the barcode.
getText
Get the raw decoded text of the barcode.
String getText()
Return Value
The raw decoded text of the barcode.
getBytes
Get the raw bytes of the decoded barcode text.
byte[] getBytes()
Return Value
The decode byte of the barcode.
getLocation
Get the location of the barcode as a Quadrilateral. The quadrilateral contains the four vertex points of the location, with the first vertex being the left-most vertex, and going in a clockwise direction.
Quadrilateral getLocation()
Return Value
The location of the barcode.
getConfidence
Get the confidence of the decoded result, which is a measure of the result’s accuracy. If the confidence is lower than 30, the result will not be output by default.
int getConfidence()
Return Value
The confidence of the decoding result.
getAngle
If the barcode is captured at an angle, this method returns the rotation angle of the barcode.
int getAngle()
Return Value
The rotation angle of the barcode.
getModuleSize
Get the module size of the barcode.
int getModuleSize()
Return Value
The module size of the barcode.
getDetails
Gets the details of the decoded barcode. BarcodeDetails can offer much more enhanced details specific to the barcode format of the decoded barcode. If you would like to learn more about how you can use these barcode details, please see this article on how to get detauled barcode info.
BarcodeDetails getDetails()
Return Value
The details of the decoded barcode.
isDPM
Tells you whether the barcode is a DPM barcode, which is a unique type of Datamatrix code.
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.
boolean isMirrored()
Return Value
If true, the barcode is mirrored. Otherwise, the barcode isn’t mirrored.