目录

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

Public Method Summary

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

Public Methods

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

Return

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

Return

Typedesc
String返回文本内容。