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 -> 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
The following methods are inherited from class CRegionObjectElement
.
Method | Description |
---|---|
GetLocation |
Get the location of the region object element. |
GetReferencedElement |
Get a pointer to a referenced region object element. |
GetElementType |
Get the type of the region object element. |
~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
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
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