| class info |
| com.huawei.hms.mlsdk.text.MLText.TextLine |
| 表示图像中检测出的文本行。包含继承自Base的5个属性和字: 1、getStringValue():检测出的文本内容; 2、getBorder():文本行的边框; 3、getVertexes():文本行边框的顶点; 4、getPossibility():检测结果的置信度; 5、getLanguageList():检测到的所有语种; 6、getContents():组成文本行的字。 |
Public Method Summary
| Return type | Method name |
| List< MLText.Word > | getContents() |
| float | getRotatingDegree() |
| boolean | isVertical() |
Public Methods
| Method |
| public synchronized List< MLText.Word > getContents() |
| 获取文本行中的字。 |
Return
| Type | desc |
| List< MLText.Word > | 返回文本行中所有字的集合。 |
| Method |
| public float getRotatingDegree() |
| 获取图像中文本行相对于水平位置旋转的角度,以文本行边框左上角为原点,顺时针旋转的角度为正,逆时针旋转的角度为负。 |
Return
| Type | desc |
| float | 返回角度,角度范围为:[-45°,45°] |
| Method |
| public boolean isVertical() |
| 判断图像中文本行文字是否为垂直布局。 |
Return
| Type | desc |
| boolean | true:文字是垂直布局; false:文字是水平布局。 |