| class info |
| com.huawei.hms.mlsdk.document.MLDocument |
| 表示图像检测出的文档信息。包含两个属性: 1、图像中检测到的所有文本内容。 2、图像中检测到的所有文本区块,包含文本内容、文本区块边界和语种等信息。 |
| Return type | Method name |
| List<MLDocument.Block> | getBlocks() |
| String | getStringValue() |
| Method |
| public List<MLDocument.Block> getBlocks() |
| 获取图像中检测到的所有文本区块,包含段落、文字、区块边界和语种等信息。 |
Return
| Type | Desc |
| List<MLDocument.Block> | 返回文本区块列表。 |
| Method |
| public String getStringValue() |
| 获取图像中检测到的所有文本内容。 |
Return
| Type | desc |
| String | 返回文本内容。 |