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

Package: com.dynamsoft.dbr.intermediate_results

Inheritance: IntermediateResultUnit -> DecodedBarcodesUnit

public class DecodedBarcodesUnit extends IntermediateResultUnit

Methods

Method Description
getCount Gets the number of decoded barcodes in the unit.
getDecodedBarcode Gets the DecodedBarcodeElement object at the specified index.
getDecodedBarcodes Gets all decoded barcode elements.
removeAllDecodedBarcodes Removes all the decoded barcodes in the unit.
setDecodedBarcode Sets the decoded barcode.

getCount

Gets the number of decoded barcodes in the unit.

public int getCount()

Return value

Returns the number of decoded barcodes in the unit.

getDecodedBarcode

Gets the DecodedBarcodeElement object at the specified index.

public DecodedBarcodeElement getDecodedBarcode(int index) throws BarcodeReaderException

Parameter

index The index of the desired DecodedBarcodeElement object.

Return value

Returns the DecodedBarcodeElement object at the specified index.

Exceptions

BarcodeReaderException If an error occurs while retrieving the decoded barcode element.

See Also

BarcodeReaderException

DecodedBarcodeElement

getDecodedBarcodes

Gets all decoded barcode elements.

public DecodedBarcodeElement[] getDecodedBarcodes()

Return value

Returns an array of all DecodedBarcodeElement objects.

See Also

DecodedBarcodeElement

removeAllDecodedBarcodes

Removes all the decoded barcodes in the unit.

public void removeAllDecodedBarcodes()

setDecodedBarcode

Sets the decoded barcode.

public void setDecodedBarcode(DecodedBarcodeElement element) throws BarcodeReaderException
public void setDecodedBarcode(DecodedBarcodeElement element, double[] matrixToOriginalImage) throws BarcodeReaderException

Parameters

element The decoded barcode element.

matrixToOriginalImage The matrix to original image. The array length must be 9.

Exceptions

BarcodeReaderException If an error occurs while setting the decoded barcode element.

IllegalArgumentException If the matrixToOriginalImage array length is not 9.

See Also

BarcodeReaderException

DecodedBarcodeElement

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: