Table of contents
Swift
Objective-C

LocalizedBarcodeElement Class

The LocalizedBarcodeElement class represents a localized barcode element detected in an image. It is inherited from RegionObjectElement class.

Definition

Package: com.dynamsoft.dbr.intermediate_results

Inheritance: RegionObjectElement -> LocalizedBarcodeElement

public class LocalizedBarcodeElement extends RegionObjectElement

Methods

Method Description
LocalizedBarcodeElement Initializes a new instance of the LocalizedBarcodeElement class.
getAngle Gets the orientation angle of the barcode.
getConfidence Gets the confidence score of the barcode localization result.
getPossibleFormats Gets the possible format of the barcode.
getPossibleFormatsString Get all possible formats of the localized barcode in one string splited by “,”.
getModuleSize Gets the module size of the barcode.
setPossibleFormats Sets the posssible formats of the barcode.
setLocation Sets the location of the localized barcode.

LocalizedBarcodeElement

Initializes a new instance of the LocalizedBarcodeElement class.

public LocalizedBarcodeElement()

getAngle

Gets the orientation angle of the barcode.

public int getAngle()

Return value

Returns the orientation angle of the barcode.

getConfidence

Gets the confidence score of the barcode localization result.

public int getConfidence()

Return value

Returns the confidence score of the barcode recognition result. It represents the confidence that the positioning area is a barcode.

getPossibleFormats

Gets the format of the barcode.

public long getPossibleFormats()

Return value

Returns the format of the barcode.

See Also

EnumBarcodeFormat

getPossibleFormatsString

Gets all possible formats of the localized barcode in one string splited by “,”.

public String getPossibleFormatsString()

Return value

Returns the string representation of the barcode format in one string splited by “,”.

getModuleSize

Gets the module size of the barcode.

public int getModuleSize()

Return value

Returns the module size of the barcode.

setPossibleFormats

Sets the posssible formats of the barcode.

public void setPossibleFormats(long possibleFormats)

Parameters

possibleFormats The posssible formats of the barcode.

See Also

EnumBarcodeFormat

setLocation

Sets the location of the localized barcode.

public void setLocation(Quadrilateral location) throws BarcodeReaderException

Parameters

location The location of the localized barcode.

Exceptions

BarcodeReaderException If an error occurs while setting the location.

See Also

Quadrilateral

BarcodeReaderException

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: