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.

LocalizedTextLinesUnit

The LocalizedTextLinesUnit class represents a unit that contains localized text lines. It inherits from the IntermediateResultUnit class.

Definition

Namespace: com.dynamsoft.dlr.intermediate_results

Assembly: DynamsoftLabelRecognizer.aar

class LocalizedTextLinesUnit extends IntermediateResultUnit

Inheritance: IntermediateResultUnit -> LocalizedTextLinesUnit

Methods

Method Description
getLocalizedTextLine Returns an array of LocalizedTextLineElement objects, each representing a localized text line.
getCount Returns the number of text lines that are localized from the image.
getLocalizedTextLine Returns the localized text line at the specified index in a LocalizedTextLineElement object.
removeAllLocalizedTextLines Removes all the localized text lines from the unit.
removeLocalizedTextLine Removes a localized text line from the unit.
addLocalizedTextLine Adds a LocalizedTextLineElement to the unit.
setLocalizedTextLine Sets the LocalizedTextLineElement at the specified index.

getLocalizedTextLines

Returns an array of LocalizedTextLineElement objects, each representing a localized text line.

LocalizedTextLineElement[] getLocalizedTextLines();

Return value

Returns an array of LocalizedTextLineElement, which is the basic unit of the localized text line result.

getCount

Returns the number of LocalizedTextLineElement objects from the image.

int getCount();

Return value

Returns the number of text lines that are localized from the image.

getLocalizedTextLine

Returns the localized text line at the specified index in a LocalizedTextLineElement object.

LocalizedTextLineElement getLocalizedTextLine(int index);

Parameters

index: The index of the LocalizedTextLineElement to be retrieved.

removeAllLocalizedTextLines

Removes all the LocalizedTextLineElement objects from the unit.

void removeAllLocalizedTextLines();

removeLocalizedTextLine

Removes a LocalizedTextLineElement from the unit.

int removeLocalizedTextLine(int index);

Parameters

index: The index of the LocalizedTextLineElement to be removed.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.

addLocalizedTextLine

Adds a LocalizedTextLineElement to the unit.

int addLocalizedTextLine(LocalizedTextLineElement element, Matrix matrixToOriginalImage); 

Parameters

element: A LocalizedTextLineElement object as the localized text line to be added to the unit.

matrixToOriginalImage: The matrix to convert the coordinates of the localized text line to the original image.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.

setLocalizedTextLine

Sets the LocalizedTextLineElement at the specified index.

int setLocalizedTextLine(int index, LocalizedTextLineElement element, Matrix matrixToOriginalImage); 

Parameters

index: The index of the localized text line to be set.

element: A LocalizedTextLineElement object as the localized text line to be set.

matrixToOriginalImage: The matrix to convert the coordinates of the localized text line 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