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

Module: dbr

Inheritance: CapturedResultItem -> BarcodeResultItem

class BarcodeResultItem(dynamsoft_core.CapturedResultItem)

Methods

Method Description
get_format Gets the format of the decoded barcode result.
get_format_string Gets the format string of the decoded barcode result.
get_text Gets the text result of the decoded barcode.
get_bytes Gets the text bytes of the decoded barcode result.
get_location Gets the location of the decoded barcode in a quadrilateral.
get_confidence Gets the confidence of the decoded barcode result.
get_angle Gets the angle of the decoded barcode result.
get_module_size Gets the module size of the decoded barcode result.
get_details Gets the details of the decoded barcode result.
is_dpm Gets whether the decoded barcode is a DPM code.
is_mirrored Gets whether the decoded barcode is a mirrored barcode.
get_eci_segments Gets all the ECI segments in the barcode.

get_format

Gets the format of the decoded barcode result.

def get_format(self) -> int:

Return Value

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

See Also

EnumBarcodeFormat

get_format_string

Gets the format string of the decoded barcode result.

def get_format_string(self) -> str:

Return Value

Returns the format string of the decoded barcode result.

get_text

Gets the text result of the decoded barcode.

def get_text(self) -> str:

Return Value

Returns the text result of the decoded barcode.

get_bytes

Gets the text bytes of the decoded barcode result.

def get_bytes(self) -> bytes:

Return Value

Returns the text bytes of the decoded barcode result.

get_location

Gets the location of the decoded barcode in a quadrilateral.

def get_location(self) -> Quadrilateral:

Return Value

Returns the location of the decoded barcode in a quadrilateral.

See Also

Quadrilateral

get_confidence

Gets the confidence of the decoded barcode result.

def get_confidence(self) -> int:

Return Value

Returns the confidence of the decoded barcode result.

get_angle

Gets the angle of the decoded barcode result.

def get_angle(self) -> int:

Return Value

Returns the angle of the decoded barcode result.

See Also

How the angle is calculated for different barcode types

get_module_size

Gets the module size of the decoded barcode result.

def get_module_size(self) -> int:

Return Value

Returns the module size of the decoded barcode result.

get_details

Gets the details of the decoded barcode result.

def get_details(self) -> BarcodeDetails:

Return Value

Returns the details of the decoded barcode result.

See Also

is_dpm

Gets whether the decoded barcode is a DPM code.

def is_dpm(self) -> bool:

Return Value

Returns whether the decoded barcode is a DPM code.

is_mirrored

Gets whether the decoded barcode is mirrored.

def is_mirrored(self) -> bool:

Return Value

Returns whether the decoded barcode is mirrored.

get_eci_segments

Gets all the ECI segments in the barcode.

def get_eci_segments(self) -> List[ECISegment]:

Return Value

Returns a list of ECISegment objects. Returns an empty list if no ECI information is present.

See Also

ECISegment

Remarks

Introduced in Dynamsoft Barcode Reader SDK version 11.4.1000 and Dynamsoft Capture Vision version 3.4.1000.

This page is compatible for: