LocalizedTextLinesUnit
The LocalizedTextLinesUnit class represents a unit that contains localized text lines. It inherits from the IntermediateResultUnit class.
Definition
Package: com.dynamsoft.dlr.intermediate_results
Inheritance: IntermediateResultUnit -> LocalizedTextLinesUnit
public class LocalizedTextLinesUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the number of localized text lines in the unit. |
getLocalizedTextLine |
Gets a localized text line element. |
getLocalizedTextLines |
Gets all localized text line elements. |
removeAllLocalizedTextLines |
Removes all localized text lines. |
removeLocalizedTextLine |
Removes the localized text line at the specified index. |
addLocalizedTextLine |
Adds a localized text line. |
setLocalizedTextLine |
Sets the localized text line at the specified index. |
getCount
Gets the number of localized text lines in the unit.
public int getCount()
Return value
Returns the number of localized text lines in the unit.
getLocalizedTextLine
Gets a localized text line element.
public LocalizedTextLineElement getLocalizedTextLine(int index)
Parameters
index The index of the localized text line element to retrieve.
Return value
Returns the localized text line element at the specified index.
See Also
getLocalizedTextLines
Gets all localized text line elements.
public LocalizedTextLineElement[] getLocalizedTextLines()
Return value
Returns an array of localized text line elements.
See Also
removeAllLocalizedTextLines
Removes all localized text lines.
public void removeAllLocalizedTextLines()
removeLocalizedTextLine
Removes the localized text line at the specified index.
public void removeLocalizedTextLine(int index) throws LabelRecognizerException
Parameters
index The index of the localized text line to remove.
Exceptions
addLocalizedTextLine
Adds a localized text line.
public void addLocalizedTextLine(LocalizedTextLineElement element) throws LabelRecognizerException
public void addLocalizedTextLine(LocalizedTextLineElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
element The localized text line element to add.
matrixToOriginalImage The transformation matrix to the original image (optional).
Exceptions
See Also
setLocalizedTextLine
Sets the localized text line at the specified index.
public void setLocalizedTextLine(int index, LocalizedTextLineElement element) throws LabelRecognizerException
public void setLocalizedTextLine(int index, LocalizedTextLineElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
index The index where to set the localized text line.
element The localized text line element to set.
matrixToOriginalImage The transformation matrix to the original image (optional).
Exceptions
See Also
matrix_to_original_image The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.
See Also