Table of contents
Swift
Objective-C

BarcodeResultItem Class

The BarcodeResultItem class represents a barcode result item decoded by barcode reader engine. It is derived from CapturedResultItem.

Definition

Package: com.dynamsoft.dbr

Inheritance: CapturedResultItem -> BarcodeResultItem

public class BarcodeResultItem extends CapturedResultItem

Methods

Method Description
getFormat Gets the format of the decoded barcode result.
getFormatString Gets the format string of the decoded barcode result.
getText Gets the text result of the decoded barcode.
getBytes Gets the text bytes of the decoded barcode result.
getLocation Gets the location of the decoded barcode in a quadrilateral.
getConfidence Gets the confidence of the decoded barcode result.
getAngle Gets the angle of the decoded barcode result.
getModuleSize Gets the module size of the decoded barcode result.
getDetails Gets the details of the decoded barcode result.
isDPM Gets whether the decoded barcode is a DPM code.
isMirrored Gets whether the decoded barcode is a mirrored barcode.
setLocation Sets the location of the decoded barcode.
setText Sets the text of the decoded barcode.
setBytes Sets the bytes of the decoded barcode.

Method Details

getFormat

Gets the format of the decoded barcode result.

public @EnumBarcodeFormat long getFormat()

Return Value

Returns the format of the decoded barcode result which is a value of the EnumBarcodeFormat enumeration.

See Also

EnumBarcodeFormat

getFormatString

Gets the format string of the decoded barcode result.

public String getFormatString()

Return Value

Returns the format string of the decoded barcode result.

getText

Gets the text result of the decoded barcode.

public String getText()

Return Value

Returns the text result of the decoded barcode.

getBytes

Gets the text bytes of the decoded barcode result.

public byte[] getBytes()

Return Value

Returns the text bytes of the decoded barcode result.

getLocation

Gets the location of the decoded barcode in a quadrilateral.

public Quadrilateral getLocation()

Return Value

Returns the location of the decoded barcode in a quadrilateral.

See Also

Quadrilateral

getConfidence

Gets the confidence of the decoded barcode result.

public int getConfidence()

Return Value

Returns the confidence of the decoded barcode result.

getAngle

Gets the angle of the decoded barcode result.

public int getAngle()

Return Value

Returns the angle of the decoded barcode result.

See Also

How the angle is calculated for different barcode types

getModuleSize

Gets the module size of the decoded barcode result.

public int getModuleSize()

Return Value

Returns the module size of the decoded barcode result.

getDetails

Gets the details of the decoded barcode result.

public BarcodeDetails getDetails()

Return Value

Returns the details of the decoded barcode result.

See Also

isDPM

Gets whether the decoded barcode is a DPM code.

public boolean isDPM()

Return Value

Returns whether the decoded barcode is a DPM code.

isMirrored

Gets whether the decoded barcode is mirrored.

public boolean isMirrored()

Return Value

Returns whether the decoded barcode is mirrored.

setLocation

Sets the location of the decoded barcode.

public void setLocation(Quadrilateral location) throws BarcodeReaderException

Parameters

location: The location of the decoded barcode in a quadrilateral.

Exceptions

BarcodeReaderException: Thrown when an error occurs during the operation.

See Also

BarcodeReaderException

setText

Sets the text of the decoded barcode.

public void setText(String text)

Parameters

text: The text of the decoded barcode.

setBytes

Sets the bytes of the decoded barcode.

public void setBytes(byte[] bytes)

Parameters

bytes: The bytes of the decoded barcode.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: