Class Info |
|---|
com.huawei.hms.mlsdk.document.MLDocument 表示图像检测出的文档信息。包含两个属性:
|
Qualifier and Type | Class Name and Description |
|---|---|
static class | 文档信息的父类,表示检测出的基本文档信息,包含5个属性:
|
static class | 用来表示检测出的文本区块。 |
static class | 用来描述检测出的单一字符,是模型能识别的最小元素。 |
static class | 用于表示文本间隔。 |
static class | 用来表示检测出的行。 |
static class | 用来表示检测出的段落。 |
static class | 用来描述检测出的词。 |
Qualifier and Type | Method Name and Description |
|---|---|
List<MLDocument.Block> | 获取图像中检测到的所有文本区块。 |
String | 获取图像中检测到的所有文本内容。 |
Method |
|---|
public List<MLDocument.Block> getBlocks() 获取图像中检测到的所有文本区块,包含段落、文字、区块边界和语种等信息。 |
Type | Description |
|---|---|
List<MLDocument.Block> | 返回文本区块列表。 |