目录

class info
com.huawei.hms.mlsdk.text.MLText.Block
Represents a text block detected in an image. Five attributes inherited from Base and text lines are included:
1.
getStringValue(): Detected text content.
2.
getBorder(): Text block bounding box.
3.
getVertexes(): Corner points of the text block bounding box.
4.
getPossibility(): Confidence of the detection result.
5.
getLanguageList(): All detected languages.
6.
getContents(): Text lines that compose the text block.

Public Method Summary

Return typeMethod name
List<MLText.TextLine>getContents()

Public Methods

Method
public List<MLText.TextLine> getContents()
Obtains text lines in a text block.

Return

Typedesc
List<MLText.TextLine>Returns a list of text lines.