目录

class info
com.huawei.hms.mlsdk.document.MLDocument
Represents the document information detected in an image. Two attributes are included:
1. All text content detected in an image
2. All text blocks detected in an image, including the text content, text block bounding box, and language

Public Method Summary

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

Public Methods

Method
public List<MLDocument.Block> getBlocks()
Obtains all text blocks detected in an image, including the section, text, text block bounding box, and language.

Return

Typedesc
List<MLDocument.Block>Returns a list of text blocks.
Method
public String getStringValue()
Obtains all text content detected in an image.

Return

Typedesc
StringReturns the text content.