CRecognizedTextLinesUnit
The CRecognizedTextLinesUnit class represents an intermediate result unit containing recognized text lines. It inherits from the CIntermediateResultUnit class.
Definition
Namespace: dynamsoft::dlr::intermediate_results
Assembly: DynamsoftLabelRecognizer
class CRecognizedTextLinesUnit : public CIntermediateResultUnit
Inheritance: CIntermediateResultUnit -> CRecognizedTextLinesUnit
Methods
| Method | Description |
|---|---|
GetCount |
Gets the number of recognized text lines in the unit. |
GetRecognizedTextLine |
Gets a pointer to the CRecognizedTextLineElement object at the specified index. |
operator[] |
Gets a pointer to the CRecognizedTextLineElement object at the specified index. |
RemoveAllRecognizedTextLines |
Removes all recognized text lines. |
RemoveRecognizedTextLine |
Removes the recognized text line at the specified index. |
AddRecognizedTextLine |
Adds a recognized text line. |
SetRecognizedTextLine |
Sets the recognized text line at the specified index. |
| Methods Inherited from CIntermediateResultUnit: | |
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 recognized text lines in the unit.
virtual int GetCount() const = 0;
Return value
Returns the number of recognized text lines in the unit.
GetRecognizedTextLine
Gets a pointer to the CRecognizedTextLineElement object at the specified index.
virtual const CRecognizedTextLineElement* GetRecognizedTextLine(int index) const = 0;
Parameters
[in] index The index of the desired CRecognizedTextLineElement object.
Return value
Returns a pointer to the CRecognizedTextLineElement object at the specified index.
operator[]
Gets a pointer to the CRecognizedTextLineElement object at the specified index.
virtual const CRecognizedTextLineElement* operator[](int index) const = 0;
Parameters
[in] index The index of the desired CRecognizedTextLineElement object.
Return value
Returns a pointer to the CRecognizedTextLineElement object at the specified index.
RemoveAllRecognizedTextLines
Removes all recognized text lines.
virtual void RemoveAllRecognizedTextLines() = 0;
RemoveRecognizedTextLine
Removes the recognized text line at the specified index.
virtual int RemoveRecognizedTextLine(int index) = 0;
Parameters
[in] index The index of the recognized text line to remove.
Return value
Returns 0 if successful, otherwise returns a negative value.
AddRecognizedTextLine
Adds a recognized text line.
virtual int AddRecognizedTextLine(const CRecognizedTextLineElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
[in] element The recognized text line to add.
[in] matrixToOriginalImage The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.
SetRecognizedTextLine
Sets the recognized text line at the specified index.
virtual int SetRecognizedTextLine(int index, const CRecognizedTextLineElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
[in] index The index of the recognized text line to set.
[in] element The recognized text line to set.
[in] matrixToOriginalImage The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.