Documentation
Table of contents

Thanks for downloading Dynamsoft Label Recognizer Package!

Your download will start shortly. If your download does not begin, click here to retry.

RecognizedTextLinesUnit

The RecognizedTextLinesUnit class represents an intermediate result unit containing recognized text lines. It inherits from the IntermediateResultUnit class.

Definition

Namespace: com.dynamsoft.dlr.intermediate_results

Assembly: DynamsoftLabelRecognizer.aar

class RecognizedTextLinesUnit extends IntermediateResultUnit

Inheritance: IntermediateResultUnit -> RecognizedTextLinesUnit

Methods

Method Description
getRecognizedTextLines Gets a pointer to the RecognizedTextLineElement object at the specified index.

getRecognizedTextLines

Gets all the recognized text lines of this unit in an array of RecognizedTextLineElement.

RecognizedTextLineElement[] getRecognizedTextLines();

Return value

An array of RecognizedTextLineElement that contains all recognized text line of this unit.

getCount

Gets the number of recognized text lines in this unit.

int getCount();

Return value

The number of recognized text lines in this unit.

getRecognizedTextLine

Gets the recognized text line at the specified index in a RecognizedTextLineElement object.

RecognizedTextLineElement getRecognizedTextLine(int index);

Parameters

index: The index of the recognized text line in this unit.

Return value

The recognized text line at the specified index in a RecognizedTextLineElement object.

removeAllRecognizedTextLines

Removes all the recognized text lines from the unit.

void removeAllRecognizedTextLines();

setRecognizedTextLine

Sets the recognized text line at the specified index in a RecognizedTextLineElement object.

int setRecognizedTextLine(RecognizedTextLineElement element, Matrix matrixToOriginalImage);

Parameters

element: The RecognizedTextLineElement object to be set.

matrixToOriginalImage: The matrix to the original image.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (3.2.30)
  • Version 3.x
    • Version 3.0.20
  • Version 2.x
    • Version 2.2.20
    • Version 2.0.0
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support