Dev Center
Table of contents

CLocalizedBarcodesUnit Class

The CLocalizedBarcodesUnit class represents a unit that contains localized barcodes unit. It inherits from the CIntermediateResultUnit class.

Definition

Namespace: dynamsoft::dbr::intermediate_results

Assembly: DynamsoftBarcodeReader

Inheritance: CIntermediateResultUnit -> CLocalizedBarcodesUnit

class CLocalizedBarcodesUnit: public CIntermediateResultUnit

Methods

Method Description
AddLocalizedBarcode Adds a localized barcode.
GetLocalizedBarcode Gets a pointer to a specific localized barcode element.
GetCount Gets the number of localized barcodes in the unit.
RemoveAllLocalizedBarcodes Removes all the localized barcodes.
RemoveLocalizedBarcode Removes a localized barcode at the specified index.
SetLocalizedBarcode Sets a localized barcode at the specified index.
operator[] Gets a pointer to a specific localized barcode element.

Inherited Methods

The following methods are inherited from class CIntermediateResultUnit.

Method Description
GetHashId Gets the hash ID of the unit.
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the image tag of the original image.
GetType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
SetHashId Sets the hash ID of the unit.
SetOriginalImageHashId Sets the hash ID of the original image.
SetOriginalImageTag Sets the image tag of the original image.
Retain Increases the reference count of the unit.
Release Decreases the reference count of the unit.
GetTransformMatrix Gets the transformation matrix via TransformMatrixType.
SetTransformMatrix Sets the transformation matrix via TransformMatrixType.
Replace Replaces the CIntermediateResultUnit object to the specified CIntermediateResultUnit object.

AddLocalizedBarcode

Adds a localized barcode.

virtual int AddLocalizedBarcode(const CLocalizedBarcodeElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;

Parameters

element The localized barcode element to be added.

matrixToOriginalImage The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

GetCount

Gets the number of localized barcodes in the unit.

virtual int GetCount() const = 0;

Return value

Returns the number of localized barcodes in the unit.

GetLocalizedBarcode

Gets a pointer to a specific localized barcode element.

virtual const CLocalizedBarcodeElement* GetLocalizedBarcode(int index) const = 0;

Parameters

[in] index The index of the localized barcode element to retrieve.

Return value

Returns a const pointer to the localized barcode element at the specified index.

See Also

CLocalizedBarcodeElement

RemoveAllLocalizedBarcodes

Removes all the localized barcodes

virtual void RemoveAllLocalizedBarcodes() = 0;

RemoveLocalizedBarcode

Removes a localized barcode at the specified index

virtual int RemoveLocalizedBarcode(int index) = 0;

Parameters

index The index of the localized barcode.

Return value

Returns 0 if successful, otherwise returns a negative value.

SetLocalizedBarcode

Sets a localized barcode at the specified index.

virtual int SetLocalizedBarcode(int index, const CLocalizedBarcodeElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;

Parameters

index The index of the localized barcode.

element The localized barcode element to be set.

matrixToOriginalImage The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

operator[]

Gets a pointer to a specific localized barcode element.

virtual const CLocalizedBarcodeElement* operator[](int index) const = 0;

Parameters

[in] index The index of the localized barcode element to retrieve.

Return value

Returns a const pointer to the localized barcode element at the specified index.

See Also

CLocalizedBarcodeElement

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 10.x
    • Version 10.2.0
    • Version 10.0.20
    • Version 10.0.10
    • Version 10.0.0
  • Version 9.x
    • Version 9.6.40
    • Version 9.6.30
    • Version 9.6.20
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.0
    • Version 9.0.0
  • Version 8.x
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
  • Version 7.x
    • Version 7.6.0
    • Version 7.5.0
Change +