| class info |
| com.huawei.hms.mlsdk.text.MLText.Block |
| Represents a text block detected in an image. Five attributes inherited from Base and text lines are included: 1. getStringValue(): Detected text content. 2. getBorder(): Text block bounding box. 3. getVertexes(): Corner points of the text block bounding box. 4. getPossibility(): Confidence of the detection result. 5. getLanguageList(): All detected languages. 6. getContents(): Text lines that compose the text block. |
| Return type | Method name |
| List<MLText.TextLine> | getContents() |
| Method |
| public List<MLText.TextLine> getContents() |
| Obtains text lines in a text block. |
Return
| Type | desc |
| List<MLText.TextLine> | Returns a list of text lines. |