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. |
getAuxiliaryRegionElements |
Gets all auxiliary region elements. |
setAuxiliaryRegionElement |
Sets the auxiliary region element at the specified index. |
addAuxiliaryRegionElement |
Adds a new auxiliary region element to this unit. |
removeAuxiliaryRegionElement |
Removes the auxiliary region element at the specified index. |
removeAllAuxiliaryRegionElements |
Removes all auxiliary region elements from this unit. |
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
getAuxiliaryRegionElements
Gets all auxiliary region elements.
public AuxiliaryRegionElement[] getAuxiliaryRegionElements()
Return value
Returns an array of AuxiliaryRegionElement objects.
See Also
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.
setAuxiliaryRegionElement
Sets or replaces the auxiliary region element at the specified index.
public void setAuxiliaryRegionElement(int index, AuxiliaryRegionElement element) throws LabelRecognizerException
public void setAuxiliaryRegionElement(int index, AuxiliaryRegionElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
index The zero-based index where the element should be set.
element The auxiliary region element to set.
matrixToOriginalImage The transformation matrix from the current image to the original image (optional).
Exceptions
See Also
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.
addAuxiliaryRegionElement
Adds a new auxiliary region element to this unit.
public void addAuxiliaryRegionElement(AuxiliaryRegionElement element) throws LabelRecognizerException
public void addAuxiliaryRegionElement(AuxiliaryRegionElement element, double[] matrixToOriginalImage) throws LabelRecognizerException
Parameters
element The auxiliary region element to add.
matrixToOriginalImage The transformation matrix from the current image to the original image (optional).
Exceptions
See Also
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.
removeAuxiliaryRegionElement
Removes the auxiliary region element at the specified index.
public void removeAuxiliaryRegionElement(int index) throws LabelRecognizerException
Parameters
index The zero-based index of the auxiliary region element to remove.
Exceptions
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.
removeAllAuxiliaryRegionElements
Removes all auxiliary region elements from this unit.
public void removeAllAuxiliaryRegionElements()
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.