Documentation
Table of contents

CTextLineResultItem

The CTextLineResultItem class represents a text line result item recognized by the library. It is derived from CCapturedResultItem.

Definition

Namespace: dynamsoft::dlr

Assembly: DynamsoftLabelRecognizer

class CTextLineResultItem : public CCapturedResultItem

Inheritance: CCapturedResultItem -> CTextLineResultItem

Methods Summary

Method Description
GetText Gets the text content of the text line.
GetLocation Gets the location of the text line in the form of a quadrilateral.
GetConfidence Gets the confidence of the text line recognition result.
GetCharacterResultsCount Gets the count of character results in the text line.
GetCharacterResult Gets the character result at the specified index.
GetSpecificationName Gets the name of the text line specification that generated this element.
GetRawText Gets the recognized raw text, excluding any concatenation separators.
SetLocation Set the location of the text line item.

SetLocation

Set the location of the text line item.

virtual int SetLocation(const CQuadrilateral& location) = 0;

Parameters

[in] location The location of the text line item.

Return value

Returns 0 if success, otherwise an error code.

GetText

It is used to get the text content of the text line.

virtual const char* GetText() const = 0;

Return value

Returns the text content of the text line.

GetLocation

It is used to get the location of the text line in the form of a quadrilateral.

virtual CQuadrilateral GetLocation() const = 0;

Return value

Returns the location of the text line in the form of a quadrilateral.

GetConfidence

It is used to get the confidence of the text line recognition result.

virtual int GetConfidence() const = 0;

Return value

Returns the confidence of the text line recognition result.

GetCharacterResultsCount

It is used to get the count of character results in the text line.

virtual int GetCharacterResultsCount() const = 0;

Return value

Returns the count of character results in the text line.

GetCharacterResult

It is used to get the character result at the specified index.

virtual const CCharacterResult* GetCharacterResult(int index) const = 0;

Parameters

[in] index The index of the character result to get.

Return value

Returns the character result at the specified index.

GetSpecificationName

Gets the name of the text line specification that generated this item.

virtual const char* GetSpecificationName() const = 0;

Return value

Returns the name of the text line specification that generated this item.

GetRawText

Gets the recognized raw text, excluding any concatenation separators.

virtual const char* GetRawText() const = 0;

Return value

Returns a pointer to the recognized raw text.

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 +