Documentation
Table of contents

CRawTextLinesUnit

The CRawTextLinesUnit class represents an intermediate result unit containing raw text lines. It inherits from the CIntermediateResultUnit class.

Definition

Namespace: dynamsoft::dlr::intermediate_results

Assembly: DynamsoftLabelRecognizer

class CRawTextLinesUnit : public CIntermediateResultUnit

Inheritance: CIntermediateResultUnit -> CRawTextLinesUnit

Methods

Method Description
GetCount Gets the number of raw text lines in the unit.
GetRawTextLine Gets a pointer to a specific raw text line.
operator[] Gets a pointer to a specific raw text line.
RemoveAllRawTextLines Removes all raw text lines.
RemoveRawTextLine Removes the raw text line at the specified index.
AddRawTextLine Adds a raw text line.
SetRawTextLine Sets the raw text line at the specified index.

GetCount

Gets the number of raw text lines in the unit.

virtual int GetCount() const = 0;

Return value

Returns the number of raw text lines in the unit.

GetRawTextLine

Gets a pointer to a specific raw text line.

virtual const CRawTextLine* GetRawTextLine(int index) const = 0;

Parameters

[in] index The index of the raw text line to retrieve.

Return value

Returns a const pointer to the raw text line at the specified index.

operator[]

Gets a pointer to a specific raw text line.

virtual const CRawTextLine* operator[](int index) const = 0;

Parameters

[in] index The index of the raw text line to retrieve.

Return value

Returns a const pointer to the raw text line at the specified index.

RemoveAllRawTextLines

Removes all raw text lines.

virtual void RemoveAllRawTextLines() = 0;

RemoveRawTextLine

Removes the raw text line at the specified index.

virtual int RemoveRawTextLine(int index) = 0;

Parameters

[in] index The index of the raw text line to remove.

Return value

Returns 0 if successful, otherwise returns a negative value.

AddRawTextLine

Adds a raw text line.

virtual int AddRawTextLine(const CRawTextLine* textline, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0;

Parameters

[in] textline The raw text line to add.

[in] matrixToOriginalImage The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

SetRawTextLine

Sets the raw text line at the specified index.

virtual int SetRawTextLine(int index, const CRawTextLine* textline, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0;

Parameters

[in] index The index of the raw text line to set.

[in] textline The raw text line to set.

[in] matrixToOriginalImage The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 3.x
      • Version 3.2.30
      • Version 3.2.20
      • Version 3.2.10
      • Version 3.2.0
      • Version 3.0.30
      • Version 3.0.20
      • Version 3.0.10
      • Version 3.0.0
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.0.0
      • Version 2.2.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
    • Documentation Homepage
    Change +