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