Documentation
Table of contents

CRecognizedTextLinesResult

The CRecognizedTextLinesResult class represents the result of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process.

Definition

Namespace: dynamsoft::dlr

Assembly: DynamsoftLabelRecognizer

class CRecognizedTextLinesResult

Methods Summary

Method Description
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the tag of the original image.
GetItemsCount Gets the number of text line result items in the recognition result.
GetItem Gets the text line result item at the specified index.
HasItem Check if the item is present in the array.
RemoveItem Remove a specific item from the array in the recognition result.
GetRotationTransformMatrix Get the rotation transformation matrix of the original image relative to the rotated image.
GetErrorCode Gets the error code of the recognition result, if an error occurred.
GetErrorString Gets the error message of the recognition result, if an error occurred.
operator[] Gets the text line result item at the specified index.
Retain Increases the reference count of the CRecognizedTextLinesResult object.
Release Decreases the reference count of the CRecognizedTextLinesResult object.
AddItem Add a specific item to the array in the recognized text lines result.

GetOriginalImageHashId

Gets the hash ID of the original image.

virtual const char* GetOriginalImageHashId() const = 0;

Return value

Returns a pointer to a null-terminated string containing the hash ID of the original image.

GetOriginalImageTag

Gets the tag of the original image.

virtual const CImageTag* GetOriginalImageTag() const = 0;

Return value

Returns a pointer to a CImageTag object representing the tag of the original image.

GetItemsCount

Gets the number of text line result items in the recognition result.

virtual int GetItemsCount() const = 0;

Return value

Returns the number of text line result items in the recognition result.

GetItem

Gets the text line result item at the specified index.

virtual const CTextLineResultItem* GetItem(int index) const = 0;

Parameters

[in] index The zero-based index of the text line result item to retrieve.

Return value

Returns a pointer to the CTextLineResultItem object at the specified index.

HasItem

Check if the item is present in the array.

bool HasItem(const CTextLineResultItem* item) const

Parameters

[in] item The specific item to check.

Return value

Returns a bool value indicating whether the item is present in the array or not.

RemoveItem

Remove a specific item from the array in the recognition result.

int RemoveItem(const CTextLineResultItem* item)

Parameters

[in] item The specific item to remove.

Return value

Return value indicating whether the deletion was successful or not.

GetRotationTransformMatrix

Get the rotation transformation matrix of the original image relative to the rotated image.

void GetRotationTransformMatrix(double matrix[9]) const;

Parameters

[out] matrix A double array which represents the rotation transform matrix.

GetErrorCode

Gets the error code of the recognition result, if an error occurred.

virtual int GetErrorCode() const = 0;

Return value

Returns the error code of the recognition result, or 0 if no error occurred.

GetErrorString

Gets the error message of the recognition result, if an error occurred.

virtual const char* GetErrorString() const = 0;

Return value

Returns a pointer to a null-terminated string containing the error message of the recognition result, or a pointer to an empty string if no error occurred.

operator[]

Gets the text line result item at the specified index.

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

Parameters

[in] index The zero-based index of the text line result item to retrieve.

Return value

Returns a pointer to the CTextLineResultItem object at the specified index.

Retain

Increases the reference count of the CRecognizedTextLinesResult object.

virtual CRecognizedTextLinesResult* Retain() = 0;

Return value

An object of CRecognizedTextLinesResult.

Release

Decreases the reference count of the CRecognizedTextLinesResult object.

virtual void Release() = 0;

AddItem

Add a specific item to the array in the recognized text lines result.

virtual int AddItem(const CTextLineResultItem* item) = 0;

Parameters

[in] item The specific item to add.

Return value

Return value indicating whether the addition was successful or not.

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 +