Table of contents
Swift
Objective-C

DecodedBarcodesUnit Class

The DecodedBarcodesUnit class represents a unit that contains decoded barcode elements. It inherits from the IntermediateResultUnit class.

Definition

Module: dynamsoft_barcode_readers

Inheritance: IntermediateResultUnit -> DecodedBarcodesUnit

class DecodedBarcodesUnit(IntermediateResultUnit)

Methods

Method Description
get_count Gets the number of decoded barcodes in the unit.
get_decoded_barcode Gets the DecodedBarcodeElement object at the specified index.
remove_all_decoded_barcodes Removes all the decoded barcodes in the unit.
set_decoded_barcode Sets the decoded barcode.

get_count

Gets the number of decoded barcodes in the unit.

def get_count(self) -> int:

Return value

Returns the number of decoded barcodes in the unit.

get_decoded_barcode

Gets the DecodedBarcodeElement object at the specified index.

def get_decoded_barcode(self, index: int) -> DecodedBarcodeElement:

Parameter

index The index of the desired DecodedBarcodeElement object.

Return value

Returns the DecodedBarcodeElement object at the specified index.

See Also

DecodedBarcodeElement

remove_all_decoded_barcodes

Removes all the decoded barcodes in the unit.

def remove_all_decoded_barcodes(self) -> None:

set_decoded_barcode

Sets the decoded barcode.

def set_decoded_barcode(self, element: DecodedBarcodeElement, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:

Parameters

element The decoded barcode element.

matrix_to_original_image The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

See Also

DecodedBarcodeElement

Is this page helpful?

YesYes NoNo

In this article: