目录

class info
com.huawei.hms.mlsdk.document.MLDocument
表示图像检测出的文档信息。包含两个属性:
1、图像中检测到的所有文本内容。
2、图像中检测到的所有文本区块,包含文本内容、文本区块边界和语种等信息。

Public Method Summary

Return typeMethod name
List<MLDocument.Block>getBlocks()
StringgetStringValue()

Public Methods

Method
public List<MLDocument.Block> getBlocks()
获取图像中检测到的所有文本区块,包含段落、文字、区块边界和语种等信息。

Return

TypeDesc
List<MLDocument.Block>返回文本区块列表。
Method
public String getStringValue()
获取图像中检测到的所有文本内容。

Return

Typedesc
String返回文本内容。