Dev Center
Swift
Objective-C
Table of contents

BarcodeResultItem Class

BarcodeResultItem extends the CapturedResultItem class and represents a single barcode result. This is the most basic item of the decoded barcode result, one of the captured result types that the Capture Vision Router can output.

Definition

Assembly: DynamsoftBarcodeReader.aar

Namespace: com.dynamsoft.dbr

class BarcodeResultItem extends CapturedResultItem

Methods

Method Description
getFormat Returns the format of the barcode.
getFormatString Returns the format text of the barcode.
getText Returns the decode text of the barcode.
getBytes Returns the decode byte of the barcode.
getLocation Returns the location of the barcode.
getConfidence Returns the confidence of the decoding result.
getAngle Returns the rotation angle of the barcode.
getModuleSize Returns the module size of the barcode.
getDetails Returns the details 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.

The following methods are inherited from CapturedResultItem.

Method Description
getType Get the type of the captured result item, indicating what kind of data it represents.
getReferencedItem Get a property of type CapturedResultItem that represents a reference to another captured result item.
getTargetROIDefName Gets the name of the TargetROIDef object which includes a task that generated the result.
getTaskName The name of the task that generated the result.

getFormat

Returns the format of the barcode. This format will be one of the EnumBarcodeFormat items.

long getFormat()

Return Value

The EnumBarcodeFormat of the barcode.

getFormatString

Returns the format of the barcode, but as a string instead of a BarcodeFormat enumeration item.

String getFormatString()

Return Value

The format text of the barcode.

getText

Returns the raw decoded text of the barcode.

String getText()

Return Value

The raw decoded text of the barcode.

getBytes

Returns the raw bytes of the decoded barcode text which is useful when the text string cannot be used.

byte[] getBytes()

Return Value

The bytes of the decoded barcode.

getLocation

Returns the location of the barcode as a Quadrilateral. The quadrilateral contains the four vertices of the location, with the first vertex in the points array being the top-left most vertex, and then going in a clockwise direction.

Quadrilateral getLocation()

Return Value

A Quadrilateral object representing the location of the barcode.

getConfidence

Returns the confidence of the decoded result, which is a measure of the result’s accuracy or reliability. If the confidence is lower than 30, the result will not be output by default. To change the minimum accepted confidence score for a barcode, please see the minResultConfidence setting.

int getConfidence()

Return Value

An integer representing the confidence of the barcode result.

getAngle

If the barcode is captured at an angle or is rotated by any measure, this method returns the rotation angle of the barcode.

int getAngle()

Return Value

An integer representing the rotation angle of the barcode.

getModuleSize

Returns the size of the individual modules or elements within the barcode.

int getModuleSize()

Return Value

An integer representing the module size of the barcode.

getDetails

Returns 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 detailed barcode info.

BarcodeDetails getDetails()

Return Value

A BarcodeDetails object representing the details of the decoded barcode.

isDPM

Specifies if the decoded barcode is a Direct Part Marking (DPM) code or not. To learn how to read DPM codes, please visit how to read DPM codes.

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.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 10.x
      • Version 10.2.10
      • Version 10.0.21
      • Version 10.0.20
      • Version 10.2.10
      • Version 10.0.21
      • Version 10.0.20
    • Version 9.x
      • Version 9.6.40
      • Version 9.6.20
      • Version 9.6.11
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.11
      • Version 9.2.10
      • Version 9.0.2
      • Version 9.0.1
      • Version 9.0.0
      • Version 9.6.40
      • Version 9.6.20
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.13
      • 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 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
      • Version 7.6.0
      • Version 7.5.0
    Change +