Documentation
Table of contents

RawTextLinesUnit

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

Definition

Package: com.dynamsoft.dlr.intermediate_results

Inheritance: IntermediateResultUnit -> RawTextLinesUnit

public class RawTextLinesUnit extends IntermediateResultUnit

Methods

Method Description
getCount Gets the number of raw text lines in the unit.
getRawTextLine Gets a raw text line.
getRawTextLines Gets all raw text lines.
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

Gets the number of raw text lines in the unit.

public int getCount()

Return value

Returns the number of raw text lines in the unit.

getRawTextLine

Gets a raw text line.

public RawTextLine getRawTextLine(int index)

Parameters

index The index of the raw text line to retrieve.

Return value

Returns the raw text line at the specified index.

See Also

RawTextLine

getRawTextLines

Gets all raw text lines.

public RawTextLine[] getRawTextLines()

Return value

Returns an array of raw text lines.

See Also

RawTextLine

removeAllRawTextLines

Removes all raw text lines.

public void removeAllRawTextLines()

removeRawTextLine

Removes the raw text line at the specified index.

public void removeRawTextLine(int index)

Parameters

index The index of the raw text line to remove.

addRawTextLine

Adds a raw text line.

public void addRawTextLine(RawTextLine textLine)
public void addRawTextLine(RawTextLine textLine, double[] matrixToOriginalImage)

Parameters

textLine The raw text line to add. matrixToOriginalImage The transformation matrix to the original image (optional).

See Also

RawTextLine

setRawTextLine

Sets the raw text line at the specified index.

public void setRawTextLine(int index, RawTextLine textLine)
public void setRawTextLine(int index, RawTextLine textLine, double[] matrixToOriginalImage)

Parameters

index The index of the raw text line to set. textLine The raw text line to set. matrixToOriginalImage The transformation matrix to the original image (optional).

See Also

RawTextLine

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: