| class info |
| com.huawei.hms.mlsdk.document.MLDocument |
| Represents the document information detected in an image. Two attributes are included: 1. All text content detected in an image 2. All text blocks detected in an image, including the text content, text block bounding box, and language |
| Return type | Method name |
| List<MLDocument.Block> | getBlocks() |
| String | getStringValue() |
| Method |
| public List<MLDocument.Block> getBlocks() |
| Obtains all text blocks detected in an image, including the section, text, text block bounding box, and language. |
Return
| Type | desc |
| List<MLDocument.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. |