| class info |
| com.huawei.hms.mlsdk.document.MLDocument.Base |
文档信息的父类,表示检测出的基本文档信息。包含5个属性: 1、检测出的语种列表。 2、文本的间隔。 3、文本边框的顶点。 4、检测出的文本内容。 5、检测结果的置信度。 |
| Return type | Method name |
| android.graphics.Rect | getBorder() |
| MLDocument.Interval | getInterval() |
| List<text.TextLanguage> | getLanguageList() |
| Float | getPossibility() |
| String | getStringValue() |
| Method |
| public android.graphics.Rect getBorder() |
| 获取文本区域的边框。 |
Return
| Type | desc |
| android.graphics.Rect | 返回文本区域的轴对齐矩形边界框。 |
| Method |
| public MLDocument.Interval getInterval() |
| 获取检测出的文本间隔。 |
Return
| Type | desc |
| MLDocument.Interval | 返回文本间隔。 |
| Method |
| public List<text.TextLanguage> getLanguageList() |
| 获取检测出的所有语种。 |
Return
| Type | desc |
| List | 返回语种列表。 |
| Method |
| Method |
| public Float getPossibility() |
| 获取检测结果置信度 |
Return
| Type | desc |
| Float | 返回置信度,取值范围0.0-1.0,置信度越高说明检测结果越准确。 |
| Method |
| public String getStringValue() |
| 获取检测出的文本内容。 |
Return
| Type | desc |
| String | 返回文本内容。 |