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

Module: dynamsoft_barcode_reader

Inheritance: RegionObjectElement -> LocalizedBarcodeElement

class LocalizedBarcodeElement(RegionObjectElement)

Methods

Method Description
__init__ Initializes a new instance of the LocalizedBarcodeElement class.
get_angle Gets the orientation angle of the barcode.
get_confidence Gets the confidence score of the barcode localization result.
get_possible_formats Gets the possible format of the barcode.
get_possible_formats_string Get all possible formats of the localized barcode in one string splited by “,”.
get_module_size Gets the module size of the barcode.
set_possible_formats Sets the posssible formats of the barcode.

__init__

Initializes a new instance of the LocalizedBarcodeElement class.

def __init__(self):

get_angle

It is used to get the orientation angle of the barcode.

def get_angle(self) -> int:

Return value

Returns the orientation angle of the barcode.

get_confidence

It is used to get the confidence score of the barcode localization result.

def get_confidence(self) -> int:

Return value

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

get_possible_formats

It is used to get the format of the barcode.

def get_possible_formats(self) -> int:

Return value

Returns the format of the barcode.

See Also

EnumBarcodeFormat

get_possible_formats_string

It is used to get all possible formats of the localized barcode in one string splited by “,”.

def get_possible_formats_string(self) -> str:

Return value

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

get_module_size

It is used to get the module size of the barcode.

def get_module_size(self) -> int:

Return value

Returns the module size of the barcode.

set_possible_formats

Sets the posssible formats of the barcode.

def set_possible_formats(self, possible_formats: int) -> None:

Parameters

possible_formats The posssible formats of the barcode.

See Also

EnumBarcodeFormat