public class TextElement 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.
| 构造器 | 说明 |
|---|---|
TextElement() |
A constructor used to create a
TextElement instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
CvPoint[] |
getCornerPoints() |
Obtains the corner points for determining the position of the text element.
|
CvRect |
getElementRect() |
Obtains the rectangle for determining the position of the text element.
|
String |
getValue() |
Obtains the value for the text element.
|
void |
setCornerPoints(CvPoint[] cornerPoints) |
Sets the corner points for determining the position of the text element.
|
void |
setElementRect(CvRect elementRect) |
Sets the rectangle for determining the position of the text element.
|
void |
setValue(String value) |
Sets the value for the text element.
|
public TextElement()
TextElement instance.public String getValue()
public void setValue(String value)
value - Indicates the value for the text element.public CvRect getElementRect()
CvRect.public void setElementRect(CvRect elementRect)
elementRect - Indicates the rectangle, which is specified by CvRect.public CvPoint[] getCornerPoints()
CvPoint.