Table of contents

CProcessedDocumentResult Class

The CProcessedDocumentResult class is a base class for storing processed document results, including detected quads, deskewed images, and enhanced images. It inherits from CCapturedResultBase.

Definition

Namespace: dynamsoft::ddn::intermediate_results

Assembly: DynamsoftDocumentNormalizer

class CProcessedDocumentResult : CCapturedResultBase

Inheritance: CCapturedResultBase -> CProcessedDocumentResult

Methods

Method Description
GetDetectedQuadResultItemsCount Gets the count of detected quad result items.
GetDeskewedImageResultItemsCount Gets the count of deskewed image result items.
GetEnhancedImageResultItemsCount Gets the count of enhanced image result items.
GetDeskewedImageResultItem Retrieves the deskewed image result item at the specified index.
GetDetectedQuadResultItem Retrieves the detected quad result item at the specified index.
GetEnhancedImageResultItem Retrieves the enhanced image result item at the specified index.
Retain Increases the reference count of the CProcessedDocumentResult object.
Release Decreases the reference count of the CProcessedDocumentResult object.
RemoveItem Removes a specific item from the array in the recognition result.
HasItem Checks if a specific item is present in the array.

GetDetectedQuadResultItemsCount

Gets the count of detected quad result items.

virtual int GetDetectedQuadResultItemsCount() const = 0;

Return Value

Returns the number of detected quad result items.

GetDeskewedImageResultItemsCount

Gets the count of deskewed image result items.

virtual int GetDeskewedImageResultItemsCount() const = 0;

Return Value

Returns the number of deskewed image result items.

GetEnhancedImageResultItemsCount

Gets the count of enhanced image result items.

virtual int GetEnhancedImageResultItemsCount() const = 0;

Return Value

Returns the number of enhanced image result items.

GetDeskewedImageResultItem

Retrieves the deskewed image result item at the specified index.

virtual const CDeskewedImageResultItem* GetDeskewedImageResultItem(int index) const = 0;

Parameters

[in] index The index of the deskewed image result item to retrieve.

Return Value

Returns a pointer to a CDeskewedImageResultItem object representing the deskewed image result at the specified index.

GetDetectedQuadResultItem

Retrieves the detected quad result item at the specified index.

virtual const CDetectedQuadResultItem* GetDetectedQuadResultItem(int index) const = 0;

Parameters

[in] index The index of the detected quad result item to retrieve.

Return Value

Returns a pointer to a CDetectedQuadResultItem object representing the detected quad result at the specified index.

GetEnhancedImageResultItem

Retrieves the enhanced image result item at the specified index.

virtual const CEnhancedImageResultItem* GetEnhancedImageResultItem(int index) const = 0;

Parameters

[in] index The index of the enhanced image result item to retrieve.

Return Value

Returns a pointer to a CEnhancedImageResultItem object representing the enhanced image result at the specified index.

Retain

Increases the reference count of the CProcessedDocumentResult object.

virtual CProcessedDocumentResult* Retain() = 0;

Return Value

Returns an object of CProcessedDocumentResult.

Release

Decreases the reference count of the CProcessedDocumentResult object.

virtual void Release() = 0;

RemoveItem

Removes a specific item from the array in the recognition result.

virtual int RemoveItem(const CDetectedQuadResultItem* item) = 0;
virtual int RemoveItem(const CDeskewedImageResultItem* item) = 0;
virtual int RemoveItem(const CEnhancedImageResultItem* item) = 0;

Parameters

[in] item The specific item to remove.

Return Value

Returns a value indicating whether the deletion was successful or not.

HasItem

Checks if a specific item is present in the array.

virtual bool HasItem(const CDetectedQuadResultItem* item) const = 0;
virtual bool HasItem(const CDeskewedImageResultItem* item) const = 0;
virtual bool HasItem(const CEnhancedImageResultItem* item) const = 0;

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.

Is this page helpful?

YesYes NoNo

In this article: