CCapturedResultItem
The CCapturedResultItem class represents an item in a captured result. It is an abstract base class with multiple subclasses, each representing a different type of captured item such as barcode, text line, detected quad, normalized image, raw image, parsed item, etc.
Definition
Namespace: dynamsoft::basic_structures
Assembly: DynamsoftCore
class CCapturedResultItem
Methods Summary
Method | Description |
---|---|
~CCapturedResultItem |
This is the class destructor. |
GetType |
Gets the type of the captured result item. |
GetReferenceItem |
Gets a pointer to the referenced item in the captured result. |
GetTargetROIDefName |
Gets the name of the target ROI definition. |
GetTaskName |
Gets the name of the task. |
Retain |
Increases the reference count of the CCapturedResultItem object. |
Release |
Decreases the reference count of the CCapturedResultItem object. |
Clone |
Clone the captured result item. |
CCapturedResultItem Destructor
This is the class destructor.
virtual ~CCapturedResultItem(){};
GetType
Gets the type of the captured result item.
virtual CapturedResultItemType GetType() const
Return value
Returns the type of the captured result item.
See Also
GetReferenceItem
Gets a pointer to the referenced item in the captured result item.
virtual const CCapturedResultItem* GetReferenceItem() const
Return value
Returns a pointer to the referenced item in the captured result item. You are not required to release the memory pointed to by the returned pointer.
See Also
GetTargetROIDefName
Gets the name of the target ROI definition.
virtual const char* GetTargetROIDefName() const = 0;
Return value
Returns the name of the target ROI definition.
GetTaskName
Gets the name of the task.
virtual const char* GetTaskName() const = 0;
Return value
Returns the name of the task.
Retain
Increases the reference count of the CCapturedResultItem
object.
virtual CCapturedResultItem* Retain() = 0;
Return value
Returns the object of CCapturedResultItem
with its reference count incremented.
Remarks
Don’t forget to invoke the Release
method when you no longer need the object.
Release
Decreases the reference count of the CCapturedResultItem
object.
virtual void Release() = 0;
Clone
Clones the captured result item.
virtual CCapturedResultItem* Clone() const = 0;
Return value
Returns a pointer to a copy of the captured result item.
Remarks
Don’t forget to invoke the Release
method when you no longer need the object.