public class TextLine extends Object
Text detection utility classes store textual content of different levels.
The specific class for storing textual content is subject to its particular level.
Specifically, text elements stored in TextElement are combined into a text line stored in TextLine;
text lines are combined into a text block stored in TextBlock;
text blocks are combined into text stored in Text of a given image.
| 构造器 | 说明 |
|---|---|
TextLine() |
A constructor used to create a
TextLine instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
CvPoint[] |
getCornerPoints() |
Obtains the vertex array specified by
CvPoint for determining the position of curved text lines. |
List<TextElement> |
getElements() |
Obtains the detection result of text elements in the text line.
|
int |
getLanguageType() |
Obtains the language type for detecting the text line.
|
CvRect |
getLineRect() |
Obtains the rectangle specified by
CvRect for determining the position of non-curved text lines. |
String |
getValue() |
Obtains the value for detecting the text line.
|
void |
setCornerPoints(CvPoint[] cornerPoints) |
Sets the vertex array specified by
CvPoint for determining the position of curved text lines. |
void |
setElements(List<TextElement> elements) |
Sets the detection result of text elements in the text line.
|
void |
setLanguageType(int type) |
Sets the language type for detecting the text line.
|
void |
setLineRect(CvRect lineRect) |
Sets the rectangle specified by
CvRect for determining the position of non-curved text lines. |
void |
setValue(String value) |
Sets the value for detecting the text line.
|
public int getLanguageType()
TextConfiguration.public void setLanguageType(int type)
type - Indicates the language type, which is defined in TextConfiguration.public CvRect getLineRect()
CvRect for determining the position of non-curved text lines.CvRect.public void setLineRect(CvRect lineRect)
CvRect for determining the position of non-curved text lines.lineRect - Indicates the rectangle, which is specified by CvRect.public String getValue()
public void setValue(String value)
value - Indicates the value for the text line.public List<TextElement> getElements()
List<TextElement>.public void setElements(List<TextElement> elements)
elements - Indicates the detection result of text elements in the text line.
The result is stored in List<TextElement>.public CvPoint[] getCornerPoints()
CvPoint for determining the position of curved text lines.CvPoint.