Documentation
Table of contents

This documentation is deprecated. It applies only to legacy version 2.x of Capture Vision and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

TextLineResultItem

The TextLineResultItem class represents a single text line result item recognized by the library. It is derived from CapturedResultItem and is one of the base items of RecognizedTextLinesResult.

Definition

Namespace: com.dynamsoft.dlr

Assembly: DynamsoftLabelRecognizer.aar

class TextLineResultItem extends CapturedResultItem

Inheritance: CapturedResultItem -> TextLineResultItem

Methods

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.
getCharacterResults Get all the characters in the text line. Each character is represented by a CharacterResult object.
getSpecificationName Get the name of the TextLineSpecification object that generated this TextLineResultItem.

getText

Gets the text content of the individual text line.

String getText();

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.

Quadrilateral getLocation();

Return value

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

getConfidence

Gets the confidence of the individual text line recognition result.

int getConfidence();

Return value

Returns the confidence of the text line recognition result.

getCharacterResults

Returns all the characters in the text line. Each character is represented by a CharacterResult object.

CharacterResult[] getCharacterResults();

Return value

An array of CharacterResult contains all the characters.

getSpecificationName

Get the name of the TextLineSpecification object that generated this TextLineResultItem.

String getSpecificationName();

Return value

The name of the TextLineSpecification object that generated this TextLineResultItem.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: