目录

class info
com.huawei.hms.mlsdk.document.MLDocument.Line

Represents a detected line. Seven attributes inherited from Base are included:

1. getLanguageList(): Obtains the language of the line;

2. getInterval(): Obtains the interval type of the line;

3. getBorder(): Obtains the line bounding box;

4. getPoints(): Obtains the corner points of the line bounding box;

5. getStringValue(): Obtains text content of the line;

6. getPossibility(): Obtains the detection result confidence.

Public Method Summary

Return typeMethod name
List<android.graphics.Point>getPoints()
List<MLDocument.Word>getWordList()

Public Methods

Method
public List<android.graphics.Point> getPoints()
Obtains the corner points of a line bounding box.

Return

Typedesc
List<android.graphics.Point>Returns a list of corner points.
Method
public List<MLDocument.Word> getWordList()
Obtains all words in a line.

Return

Typedesc
List<MLDocument.Word>Returns a list of words.