layout | title | description | keywords | needAutoGenerateSidebar |
---|---|---|---|---|
default-layout |
class CTextZonesUnit - Dynamsoft Core Module C++ Edition API Reference |
This page shows the C++ edition of the class CTextZonesUnit in Dynamsoft Core Module. |
text zones, c++ |
true |
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.
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
class CTextZonesUnit : public CIntermediateResultUnit
Method | Description |
---|---|
GetCount |
Gets the number of text zones. |
GetTextZone |
Gets the quadrilateral shape of the text zone at the specified index. |
{%- include inherited-methods/intermediate-result-unit.md -%}
Gets the number of text zones in the unit.
virtual int GetCount() const
Return value
Returns the number of text zones in the unit.
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]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)