Table of contents

RawTextLinesUnit

The RawTextLinesUnit class represents a unit which holds the raw text lines.

Definition

Definition

Namespace: com.dynamsoft.dlr

Assembly: DynamsoftLabelRecognizer.aar

class RawTextLine

Inheritance: IntermediateResultUnit -> RecognizedTextLinesUnit

Methods

Method Description
getCount Gets the number of raw text lines in the unit.
getRawTextLine Gets a raw text line at the specified index.
getRawTextLines Gets all raw text lines of the unit.
removeAllRawTextLines Removes all raw text lines.
removeRawTextLine Removes the raw text line at the specified index.
addRawTextLine Adds a raw text line.
setRawTextLine Sets the raw text line at the specified index.

getCount

Returns the number of raw text lines in the unit.

int getCount();

Return value

Returns the number of raw text lines in the unit.

getRawTextLine

Gets a raw text line at the specified index.

RawTextLine getRawTextLine(int index);

Parameters

index: The index of the raw text line.

Return value

Returns a pointer to the RawTextLine object at the specified index.

getRawTextLines

Gets all raw text lines of the unit.

RawTextLine[] getRawTextLines();

Return value

Returns all the RawTextLine objects of the unit in an array.

removeAllRawTextLines

Removes all raw text lines.

void removeAllRawTextLines();

removeRawTextLine

Removes the raw text line at the specified index.

int removeRawTextLine(int index);

Parameters

index: The index of the raw text line to be removed.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.

addRawTextLine

Adds a raw text line to the unit.

int addRawTextLine(RawTextLine textline, Matrix matrixToOriginalImage);

Parameters

textline: A RawTextLine object as the raw text line to be added to the unit.

matrixToOriginalImage: The matrix to the original image.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.

setRawTextLine

Sets the raw text line at the specified index.

int setRawTextLine(int index, RawTextLine textline, Matrix matrixToOriginalImage);

Parameters

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

textline: A RawTextLine object as the raw text line to be set.

matrixToOriginalImage: The matrix to the original image.

Return value

Returns the ErrorCode if failed. Otherwise, returns 0.