Resource Base
Table of contents

CTextZonesUnit

The CTextZonesUnit class represents a unit that contains text zones. It is derived from CIntermediateResultUnit class and provides methods to retrieve the count and details of text zones.

Definition

Namespace: dynamsoft::intermediate_results

Assembly: DynamsoftCore

class CTextZonesUnit : public CIntermediateResultUnit

Methods Summary

Method Description
GetCount Gets the number of text zones.
GetTextZone Gets the quadrilateral shape of the text zone at the specified index.

Inherited Methods

The following methods are inherited from class CIntermediateResultUnit.

Method Description
GetHashId Gets the hash ID of the unit.
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the image tag of the original image.
GetType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
SetHashId Sets the hash ID of the unit.
SetOriginalImageHashId Sets the hash ID of the original image.
SetOriginalImageTag Sets the image tag of the original image.
Retain Increases the reference count of the unit.
Release Decreases the reference count of the unit.
GetTransformMatrix Gets the transformation matrix via TransformMatrixType.
SetTransformMatrix Sets the transformation matrix via TransformMatrixType.

GetCount

Gets the number of text zones in the unit.

virtual int GetCount() const

Return value

Returns the number of text zones in the unit.

GetTextZone

Gets the quadrilateral shape of the text zone at the specified index.

virtual int GetTextZone(int index, CQuadrilateral* quad) const

Parameters

[in] index The index of the text zone.

[in, out] quad A pointer to a CQuadrilateral object to receive the quadrilateral shape of the text zone.

Return value

Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.

Note: The caller of this method is responsible for allocating memory for the quad pointer.

See Also

CQuadrilateral

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.30

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support