layout | title | description | keywords | permalink |
---|---|---|---|---|
default-layout |
CDecodedBarcodesResult Class - Dynamsoft Barcode Reader C++ Edition API Reference |
This page shows CDecodedBarcodesResult class definition of Dynamsoft Barcode Reader SDK C++ Edition. |
GetSourceImageHashId, GetCount, GetErrorCode, CDecodedBarcodesResult, api reference |
/programming/cplusplus/api-reference/decoded-barcodes-result-v10.0.0.html |
The CDecodedBarcodesResult
class represents the result of a barcode reading process. It provides access to information about the decoded barcodes, the source image, and any errors that occurred during the barcode reading process.
Namespace: dynamsoft::dbr
Assembly: DynamsoftBarcodeReader
class CDecodedBarcodesResult
Method | Description |
---|---|
GetSourceImageHashId |
Gets the hash ID of the source image. |
GetSourceImageTag |
Gets the tag of the source image. |
GetCount |
Gets the number of barcode result items in the barcode reading result. |
GetItem |
Gets the barcode result item at the specified index. |
HasItem |
Check if the barcode result item is present in the array. |
RemoveItem |
Remove a specific barcode result item from the result array. |
GetRotationTransformMatrix |
Get the rotation transformation matrix of the original image relative to the rotated image. |
GetErrorCode |
Gets the error code of the barcode reading result, if an error occurred. |
GetErrorString |
Gets the error message of the barcode reading result, if an error occurred. |
Gets the hash ID of the source image.
virtual const char* GetSourceImageHashId() const = 0;
Return value
Returns a pointer to a null-terminated string containing the hash ID of the source image.
Gets the tag of the source image.
virtual const CImageTag* GetSourceImageTag() const = 0;
Return value
Returns a pointer to a CImageTag object representing the tag of the source image.
See Also
[CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
Gets the number of decoded barcode items in the barcode reading result.
virtual int GetCount() const = 0;
Return value
Returns the number of decoded barcode items in the barcode reading result.
Gets the decoded barcode result item at the specified index.
virtual const CBarcodeResultItem* GetItem(int index) const = 0;
Parameters
[in] index
The zero-based index of the barcode result item to retrieve.
Return value
Returns a pointer to the CBarcodeResultItem object at the specified index.
See Also
[CBarcodeResultItem]({{ site.dbr_cpp_api }}barcode-result-item.html)
Check if the barcode result item is present in the array.
bool HasItem(const CBarcodeResultItem* item) const
Parameters
[in] item
The specific item to check.
Return value
Returns a bool value indicating whether the item is present in the array or not.
See Also
[CBarcodeResultItem]({{ site.dbr_cpp_api }}barcode-result-item.html)
Remove a specific barcode result item from the result array.
int RemoveItem(const CBarcodeResultItem* item)
Parameters
[in] item
The specific item to remove.
Return value
Return value indicating whether the deletion was successful or not.
See Also
[CBarcodeResultItem]({{ site.dbr_cpp_api }}barcode-result-item.html)
Get the rotation transformation matrix of the original image relative to the rotated image.
void GetRotationTransformMatrix(double matrix[9]) const;
Parameters
[out] matrix
A double array which represents the rotation transform matrix.
Gets the error code of the barcode reading result, if an error occurred.
virtual int GetErrorCode() const = 0;
Return value
Returns the error code of the barcode reading result, or 0 if no error occurred.
See Also
[Enumeration ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?src=cpp&&lang=cpp)
Gets the error message of the barcode reading result, if an error occurred.
virtual const char* GetErrorString() const = 0;
Return value
Returns a pointer to a null-terminated string containing the error message of the barcode reading result, or a pointer to an empty string if no error occurred.