Dev Center
Swift
Objective-C
Table of contents

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.

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 +