Documentation
Table of contents

RecognizedTextLineElement

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

Definition

Module: dynamsoft_label_recognizer

class RecognizedTextLineElement(RegionObjectElement)

Inheritance: RegionObjectElement -> RecognizedTextLineElement

Methods

Method Description
__init__ Initializes a new instance of the RecognizedTextLineElement class.
get_text Gets the recognized text.
get_confidence Gets the confidence level of the recognized text.
get_character_results_count Gets the number of individual character recognition results in the line.
get_character_result Gets the character recognition result at the specified index.
get_row_number Gets the row number of the text line within the image.
get_specification_name Gets the name of the text line specification that generated this element.
get_raw_text Gets the recognized raw text, excluding any concatenation separators.
set_text Sets the recognized text.

__init__

Initializes a new instance of the RecognizedTextLineElement class.

def __init__(self, *args, **kwargs):

get_text

Gets the recognized text.

def get_text(self) -> str:

Return value

Returns the recognized text.

get_confidence

Gets the confidence level of the recognized text.

def get_confidence(self) -> int:

Return value

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

get_character_results_count

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

def get_character_results_count(self) -> int:

Return value

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

get_character_result

Gets the character recognition result at the specified index.

def get_character_result(self, index: int) -> CharacterResult:

Parameters

index The index of the character recognition result to retrieve.

Return value

Returns a CharacterResult object.

See Also

CharacterResult

get_row_number

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

def get_row_number(self) -> int:

Return value

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

get_specification_name

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

def get_specification_name(self) -> str:

Return value

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

get_raw_text

Gets the recognized raw text, excluding any concatenation separators.

def get_raw_text(self) -> str:

Return value

Returns the recognized raw text.

set_text

Sets the recognized text.

def set_text(self, text: str) -> None:

Parameters

text The text to be set.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: