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.