RecognizedTextLinesUnit
The RecognizedTextLinesUnit class represents an intermediate result unit containing recognized text lines. It inherits from the IntermediateResultUnit class.
Definition
Package: com.dynamsoft.dlr.intermediate_results
Inheritance: IntermediateResultUnit -> RecognizedTextLinesUnit
public class RecognizedTextLinesUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the number of recognized text lines in the unit. |
getRecognizedTextLine |
Gets the RecognizedTextLineElement object at the specified index. |
getRecognizedTextLines |
Gets all RecognizedTextLineElement objects in the unit. |
removeAllRecognizedTextLines |
Removes all recognized text lines. |
removeRecognizedTextLine |
Removes the recognized text line at the specified index. |
addRecognizedTextLine |
Adds a recognized text line. |
setRecognizedTextLine |
Sets the recognized text line at the specified index. |
getCount
Gets the number of recognized text lines in the unit.
public int getCount()
Return value
Returns the number of recognized text lines in the unit.
getRecognizedTextLine
Gets the RecognizedTextLineElement object at the specified index.
public RecognizedTextLineElement getRecognizedTextLine(int index)
Parameters
index The index of the recognized text line element to retrieve.
Return value
Returns the RecognizedTextLineElement object at the specified index.
See Also
getRecognizedTextLines
Gets all RecognizedTextLineElement objects in the unit.
public RecognizedTextLineElement[] getRecognizedTextLines()
Return value
Returns an array of RecognizedTextLineElement objects.
See Also
removeAllRecognizedTextLines
Removes all recognized text lines.
public void removeAllRecognizedTextLines()
removeRecognizedTextLine
Removes the recognized text line at the specified index.
public void removeRecognizedTextLine(int index) throws LabelRecognizerException
Parameters
index The index of the recognized text line to remove.
Exceptions
addRecognizedTextLine
Adds a recognized text line.
public void addRecognizedTextLine(RecognizedTextLineElement element) throws LabelRecognizerException
public void addRecognizedTextLine(RecognizedTextLineElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
element The recognized text line element to add.
matrixToOriginalImage The transformation matrix to the original image (optional).
Exceptions
See Also
setRecognizedTextLine
Sets the recognized text line at the specified index.
public void setRecognizedTextLine(int index, RecognizedTextLineElement element) throws LabelRecognizerException
public void setRecognizedTextLine(int index, RecognizedTextLineElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
index The index where to set the recognized text line.
element The recognized text line element to set.
matrixToOriginalImage The transformation matrix to the original image (optional).
Exceptions
See Also