Dev Center
Swift
Objective-C
Table of contents

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.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version (10.2.10)
    • Version 10.x
      • Version 10.0.21
      • Version 10.0.20
    • Version 9.x
      • Version 9.6.20
      • Version 9.6.11
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.13
      • Version 9.2.11
      • Version 9.2.10
      • Version 9.0.2
      • Version 9.0.1
      • Version 9.0.0
    • Version 8.x
      • Version 8.9.3
      • Version 8.9.1
      • Version 8.9.0
      • Version 8.8.0
      • Version 8.6.0
      • Version 8.4.0
      • Version 8.2.1
      • Version 8.2.0
      • Version 8.1.2
      • Version 8.1.0
      • Version 8.0.0
    • Version 7.x
      • Version 7.6.0
      • Version 7.5.0
    Change +