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: DynamsoftCaptureVisionBundle.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.