Documentation
Table of contents

RecognizedTextLineElement

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

Definition

Package: com.dynamsoft.dlr.intermediate_results

Inheritance: RegionObjectElement -> RecognizedTextLineElement

public class RecognizedTextLineElement extends RegionObjectElement

Methods

Method Description
RecognizedTextLineElement Initializes a new instance of the RecognizedTextLineElement class.
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.
getCharacterResults Gets all character recognition results in the line.
getRowNumber Gets the row number of the text line within the image.
getSpecificationName Gets the name of the text line specification that generated this element.
getRawText Gets the recognized raw text, excluding any concatenation separators.
setText Sets the recognized text.

RecognizedTextLineElement

Initializes a new instance of the RecognizedTextLineElement class.

public RecognizedTextLineElement()

getText

Gets the recognized text.

public String getText()

Return value

Returns the recognized text.

getConfidence

Gets the confidence level of the recognized text.

public int getConfidence()

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.

public int getCharacterResultsCount()

Return value

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

getCharacterResult

Gets the character recognition result at the specified index.

public CharacterResult getCharacterResult(int index)

Parameters

index The index of the character recognition result to retrieve.

Return value

Returns a CharacterResult object.

See Also

CharacterResult

getCharacterResults

Gets all character recognition results in the line.

public CharacterResult[] getCharacterResults()

Return value

Returns an array of CharacterResult objects.

See Also

CharacterResult

getRowNumber

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

public int getRowNumber()

Return value

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

getSpecificationName

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

public String getSpecificationName()

Return value

Returns the name of the text line specification.

getRawText

Gets the recognized raw text, excluding any concatenation separators.

public String getRawText()

Return value

Returns the recognized raw text.

setText

Sets the recognized text.

public void setText(String text) throws LabelRecognizerException

Parameters

text The text to set.

Exceptions

LabelRecognizerException

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: