目录

class info
com.huawei.hms.mlsdk.document.MLDocument.Block

Represents a detected text block. Six attributes inherited from Base are included:

1. getLanguageList(): Obtains the language of the text block;

2. getInterval(): Obtains the interval type of the text block;

3. getBorder(): Obtains the text block bounding box;

4. getStringValue(): Obtains text content of the text block;

5. getPossibility(): Obtains the detection result confidence;

6. getSections(): Obtains all sections contained in the text block.

Public Method Summary

Return typeMethod name
List<MLDocument.Section>getSections()

Public Methods

Method
public List<MLDocument.Section> getSections()
Obtains all sections contained in a text block.

Return

Typedesc
List<MLDocument.Section>Returns a list of sections.