layout | title | description | keywords | permalink |
---|---|---|---|---|
default-layout |
CDetectedQuadsResult Class |
This page shows CDetectedQuadsResult class definition of Dynamsoft Document Normalizer SDK C++ Edition. |
GetItemsCount, GetErrorCode, GetErrorString, GetItem, GetOriginalImageHashId, GetOriginalImageTag, CDetectedQuadsResult, api reference |
/programming/cplusplus/api-reference/detected-quads-result.html |
The CDetectedQuadsResult class stores a captured result whose type is detected quads.
Namespace: dynamsoft::ddn
Assembly: DynamsoftDocumentNormalizer
class CDetectedQuadsResult
Method | Description |
---|---|
GetItemsCount |
Gets the number of detected quadrilaterals. |
GetErrorCode |
Gets the error code of the detection operation. |
GetErrorString |
Gets the error message of the detection operation. |
GetItem |
Gets the detected quadrilateral item at a specified index. |
HasItem |
Check if the item is present in the array. |
RemoveItem |
Remove a specific item from the array in the detected quads. |
GetRotationTransformMatrix |
Get the rotation transformation matrix of the original image relative to the rotated image. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the tag of the original image. |
operator[] |
Gets the detected quadrilateral item at a specified index. |
Retain |
Increases the reference count of the CDetectedQuadsResult object. |
Release |
Decreases the reference count of the CDetectedQuadsResult object. |
Gets the number of detected quadrilaterals.
int GetItemsCount()
Return value
Returns the number of detected quadrilaterals.
Gets the error code of the detection operation.
int GetErrorCode()
Return value
Returns the error code.
See Also
- [ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?src=cpp&&lang=cpp)
Gets the error message of the detection operation.
const char* GetErrorString()
Return value
Returns a pointer to a null-terminated string that represents the error message.
Gets the detected quadrilateral item at a specified index.
const CDetectedQuadResultItem* GetItem(int index) const
Parameters
[in] index
The index of the detected quadrilateral to retrieve.
Return value
Returns a pointer to a CDetectedQuadResultItem object that represents the detected quadrilateral at the specified index.
See Also
Check if the item is present in the array.
bool HasItem(const CDetectedQuadResultItem* 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.
Remove a specific item from the array in the detected quads.
int RemoveItem(const CDetectedQuadResultItem* item)
Parameters
[in] item
The specific item to remove.
Return value
Return value indicating whether the deletion was successful or not.
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 hash ID of the original image.
const char* GetOriginalImageHashId()
Return value
Returns a pointer to a null-terminated string that represents the hash ID of the original image.
Gets the tag of the original image.
const CImageTag* GetOriginalImageTag()
Return value
Returns a pointer to a CImageTag object that represents the tag of the original image.
See Also
- [CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
Gets the detected quadrilateral item at a specified index.
virtual const CDetectedQuadResultItem* operator[](int index) const = 0
Parameters
[in] index
The zero-based index of the detected quadrilateral to retrieve.
Return value
Returns a pointer to a CDetectedQuadResultItem object that represents the detected quadrilateral at the specified index.
Increases the reference count of the CDetectedQuadsResult object.
virtual CDetectedQuadsResult* Retain() = 0;
Return value
An object of CDetectedQuadsResult.
Decreases the reference count of the CDetectedQuadsResult object.
virtual void Release() = 0;