Class Info
com.huawei.hms.mlsdk.document.MLDocument
Qualifier and Type
Method Name and Description
List<MLDocument.Block>
getBlocks()
获取图像中检测到的所有文本区块。
String
getStringValue()
获取图像中检测到的所有文本内容。
Method
public List<MLDocument.Block> getBlocks()
获取图像中检测到的所有文本区块,包含段落、文字、区块边界和语种等信息。
Type
Description
返回文本区块列表。
public String getStringValue()
返回文本内容。