| class info |
| com.huawei.hms.mlsdk.text.MLText |
| Represents the text information detected in an image. Two attributes are included: 1. All text content detected in the image 2. All text blocks detected in the image, including the text content, text block bounding box, and language |
| Return type | Method name |
| List<MLText.Block> | getBlocks() |
| String | getStringValue() |
| Method |
| public List<MLText.Block> getBlocks() |
| Obtains all text block information detected in an image, including the text content, text block bounding box, and language. |
Return
| Type | desc |
| List<MLText.Block> | Returns a list of text blocks. |
| Method |
| public String getStringValue() |
| Obtains all text content detected in an image. |
Return
| Type | desc |
| String | Returns the text content. |