Skip to content

Latest commit

 

History

History
101 lines (65 loc) · 2.79 KB

recognized-text-line-element-v3.0.20.md

File metadata and controls

101 lines (65 loc) · 2.79 KB
layout title description keywords needGenerateH3Content needAutoGenerateSidebar noTitleIndex breadcrumbText
default-layout
CRecognizedTextLineElement - Dynamsoft Label Recognizer Classes
The class CRecognizedTextLineElement of Dynamsoft Label Recognizer represents a line of recognized text in an image.
Recognized text line element
true
true
true
CRecognizedTextLineElement

CRecognizedTextLineElement

The CRecognizedTextLineElement class represents a line of recognized text in an image. It inherits from the CRegionObjectElement class.

Definition

Namespace: dynamsoft::dlr::intermediate_results

Assembly: DynamsoftLabelRecognizer

class CRecognizedTextLineElement : public CRegionObjectElement

Inheritance: [CRegionObjectElement]({{ site.dcv_cpp_api }}core/intermediate-results/region-object-element.html) -> CRecognizedTextLineElement

Methods

Method Description
GetText Gets the recognized text.
GetConfidence Gets the confidence level of the recognized text.
GetCharacterResultsCount Gets the number of individual character recognition results in the line.
GetCharacterResult Gets the character recognition result at the specified index.
GetRowNumber Gets the row number of the text line within the image.

GetText

Gets the recognized text.

virtual const char* GetText() const = 0;

Return value

Returns a pointer to the recognized text.

GetConfidence

Gets the confidence level of the recognized text.

virtual int GetConfidence() const = 0;

Return value

Returns an integer value representing the confidence level of the recognized text.

GetCharacterResultsCount

Gets the number of individual character recognition results in the line.

virtual int GetCharacterResultsCount() const = 0;

Return value

Returns an integer value representing the number of individual character recognition results.

GetCharacterResult

Gets the character recognition result at the specified index.

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

Parameters

[in] index The index of the character recognition result to retrieve.
[out] charResult A pointer to a CCharacterResult object to store the result in.

Return value

Returns an integer value representing the success of the operation. Zero indicates success, while any other value indicates failure.

GetRowNumber

Gets the row number of the text line within the image.

virtual int GetRowNumber() const = 0;

Return value

Returns an integer value representing the row number of the text line within the image.