TextZonesUnit
The TextZonesUnit class represents a unit that contains text zones. It is derived from IntermediateResultUnit class and provides methods to retrieve the count and details of text zones.
Definition
Namespace: Dynamsoft.Core.intermediate_results
class TextZonesUnit : IntermediateResultUnit
Methods
| Method | Description |
|---|---|
GetCount |
Gets the number of text zones. |
GetTextZone |
Gets the quadrilateral shape of the text zone at the specified index. |
GetTextZones |
Gets all the text zones. |
RemoveAllTextZones |
Removes all text zones from the unit. |
RemoveTextZone |
Removes the text zone at the specified index. |
AddTextZone |
Adds a text zone to the unit. |
SetTextZone |
Sets the text zone at the specified index. |
Inherited Methods
Checkout inherited methods from IntermediateResultUnit for more details.
GetCount
Gets the number of text zones in the unit.
int GetCount()
Return value
Returns the number of text zones in the unit.
GetTextZone
Gets the quadrilateral shape of the text zone at the specified index.
int GetTextZone(int index, out TextZone textZone)
Parameters
[in] index The index of the text zone.
[in, out] textZone The received text zone.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.
See Also
GetTextZones
Gets all the text zones.
int GetTextZones(out TextZone[] textZones)
Parameters
[in, out] textZone All the received text zones.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.
See Also
RemoveAllTextZones
Removes all text zones from the unit.
void RemoveAllTextZones()
RemoveTextZone
Removes the text zone at the specified index.
int RemoveTextZone(int index)
Parameters
[in] index The index of the text zone to remove.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.
AddTextZone
Adds a text zone to the unit.
int AddTextZone(TextZone textZone, double[] matrixToOriginalImage = null)
Parameters
[in] textZone The text zone to add.
[in] matrixToOriginalImage The matrix to original image.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.
See Also
SetTextZone
Sets the text zone at the specified index.
int SetTextZone(int index, TextZone textZone, double[] matrixToOriginalImage = null)
Parameters
[in] index The index of the text zone to set.
[in] textZone The text zone to set.
[in] matrixToOriginalImage The matrix to original image.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.
See Also