目录

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

文档信息的父类,表示检测出的基本文档信息。包含5个属性:

1、检测出的语种列表。

2、文本的间隔。

3、文本边框的顶点。

4、检测出的文本内容。

5、检测结果的置信度。

Public Method Summary

Return typeMethod name
android.graphics.RectgetBorder()
MLDocument.IntervalgetInterval()
List<text.TextLanguage>getLanguageList()
FloatgetPossibility()
StringgetStringValue()

Public Methods

Method
public android.graphics.Rect getBorder()
获取文本区域的边框。

Return

Typedesc
android.graphics.Rect返回文本区域的轴对齐矩形边界框。
Method
public MLDocument.Interval getInterval()
获取检测出的文本间隔。

Return

Typedesc
MLDocument.Interval返回文本间隔。
Method
public List<text.TextLanguage> getLanguageList()
获取检测出的所有语种。

Return

Typedesc
List返回语种列表。
Method
Method
public Float getPossibility()
获取检测结果置信度

Return

Typedesc
Float返回置信度,取值范围0.0-1.0,置信度越高说明检测结果越准确。
Method
public String getStringValue()
获取检测出的文本内容。

Return

Typedesc
String返回文本内容。