Skip to content

Latest commit

 

History

History
229 lines (143 loc) · 5.63 KB

decoded-barcode-element-v10.0.20.md

File metadata and controls

229 lines (143 loc) · 5.63 KB
layout title description keywords
default-layout
CDecodedBarcodeElement Class - Dynamsoft Barcode Reader C++ Edition API Reference
This page shows CDecodedBarcodeElement class definition of Dynamsoft Barcode Reader SDK C++ Edition.
GetText, GetBytes, GetBytesLength, CDecodedBarcodeElement, api reference

CDecodedBarcodeElement Class

The CDecodedBarcodeElement class represents a decoded barcode element. It inherits from the CRegionObjectElement class and provides additional functionality for retrieving information about the decoded barcode.

Definition

Namespace: dynamsoft::dbr

Assembly: DynamsoftBarcodeReader

Inheritance: [CRegionObjectElement]({{ site.dcv_cpp_api }}core/intermediate-results/region-object-element.html) -> CDecodedBarcodeElement

class CDecodedBarcodeElement : public CRegionObjectElement

Methods

Method Description
~CDecodedBarcodeElement Destructor.
GetFormat Gets the format of the barcode.
GetFormatString Gets the string representation of the barcode format.
GetText Gets the text of the decoded barcode.
GetBytes Gets the raw bytes of the decoded barcode.
GetBytesLength Gets the length of the raw bytes of the decoded barcode.
GetDetails Gets the details of the decoded barcode.
IsDPM Determines whether the decoded barcode is a DPM (Direct Part Marking) code.
IsMirrored Determines whether the decoded barcode is mirrored.
GetAngle Gets the orientation angle of the barcode.
GetModuleSize Gets the module size of the barcode.
GetConfidence Gets the confidence score of the barcode recognition result.
GetExtendedBarcodeResultsCount Gets the number of extended barcode results for the decoded barcode.
GetExtendedBarcodeResult Gets the extended barcode result at the specified index for the decoded barcode.

Inherited Methods

{%- include inherited-methods/region-object-element-10.0.20.md -%}

~CDecodedBarcodeElement

Destructor.

virtual ~CDecodedBarcodeElement() {}

GetFormat

It is used to get the format of the barcode.

BarcodeFormat GetFormat()

Return value

Returns the format of the barcode.

See Also

[Enumeration BarcodeFormat]({{ site.dcv_enumerations }}barcode-reader/barcode-format.html?src=cpp&&lang=cpp)

GetFormatString

It is used to get the string representation of the barcode format.

const char* GetFormatString() const

Return value

Returns the string representation of the barcode format.

GetText

Gets the text of the decoded barcode.

virtual const char* GetText() const = 0;

Return value

Returns a pointer to the text of the decoded barcode.

GetBytes

Gets the raw bytes of the decoded barcode.

virtual unsigned char* GetBytes() const = 0;

Return value

Returns a pointer to the raw bytes of the decoded barcode.

GetBytesLength

Gets the length of the raw bytes of the decoded barcode.

virtual int GetBytesLength() const = 0;

Return value

Returns the length of the raw bytes of the decoded barcode.

GetDetails

Gets the details of the decoded barcode.

virtual const CBarcodeDetails* GetDetails() const = 0;

Return value

Returns a pointer to the details of the decoded barcode.

See Also

  • [CAztecDetails]({{ site.dbr_cpp_api }}aztec-details.html)
  • [CBarcodeDetails]({{ site.dbr_cpp_api }}barcode-details.html)
  • [CDataMatrixDetails]({{ site.dbr_cpp_api }}datamatrix-details.html)
  • [COneDCodeDetails]({{ site.dbr_cpp_api }}oned-code-details.html)
  • [CPDF417Details]({{ site.dbr_cpp_api }}pdf417-details.html)
  • [CQRCodeDetails]({{ site.dbr_cpp_api }}qr-code-details.html)

IsDPM

Determines whether the decoded barcode is a DPM (Direct Part Marking) code.

virtual bool IsDPM() const = 0;

Return value

Returns true if the decoded barcode is a DPM code, false otherwise.

IsMirrored

Determines whether the decoded barcode is mirrored.

virtual bool IsMirrored() const = 0;

Return value

Returns true if the decoded barcode is mirrored, false otherwise.

GetAngle

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

int GetAngle() const

Return value

Returns the orientation angle of the barcode.

GetModuleSize

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

int GetModuleSize() const

Return value

Returns the module size of the barcode.

GetConfidence

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

int GetConfidence() const

Return value

Returns the confidence score of the barcode recognition result.

GetExtendedBarcodeResultsCount

Gets the number of extended barcode results for the decoded barcode.

virtual int GetExtendedBarcodeResultsCount() const = 0;

Return value

Returns the number of extended barcode results for the decoded barcode.

GetExtendedBarcodeResult

Gets the extended barcode result at the specified index for the decoded barcode.

virtual const CExtendedBarcodeResult* GetExtendedBarcodeResult(int index) const = 0;

Parameters

[in] index The index of the extended barcode result to retrieve.

Return value

Returns a pointer to the extended barcode result at the specified index for the decoded barcode.

See Also

[CExtendedBarcodeResult]({{ site.dbr_cpp_api }}extended-barcode-result.html)