你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OcrResult 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.computervision.models.OcrResult

public class OcrResult

OcrResult 模型。

方法摘要

修饰符和类型 方法和描述
String language()

获取语言值。

String modelVersion()

获取 modelVersion 值。

String orientation()

获取方向值。

List<OcrRegion> regions()

获取区域值。

double textAngle()

获取 textAngle 值。

OcrResult withLanguage(String language)

设置语言值。

OcrResult withModelVersion(String modelVersion)

设置 modelVersion 值。

OcrResult withOrientation(String orientation)

设置方向值。

OcrResult withRegions(List<OcrRegion> regions)

设置区域值。

OcrResult withTextAngle(double textAngle)

设置 textAngle 值。

方法详细信息

language

public String language()

获取语言值。

Returns:

语言值

modelVersion

public String modelVersion()

获取 modelVersion 值。

Returns:

modelVersion 值

orientation

public String orientation()

获取方向值。

Returns:

方向值

regions

public List regions()

获取区域值。

Returns:

区域值

textAngle

public double textAngle()

获取 textAngle 值。

Returns:

textAngle 值

withLanguage

public OcrResult withLanguage(String language)

设置语言值。

Parameters:

language - 要设置的语言值

Returns:

OcrResult 对象本身。

withModelVersion

public OcrResult withModelVersion(String modelVersion)

设置 modelVersion 值。

Parameters:

modelVersion - 要设置的 modelVersion 值

Returns:

OcrResult 对象本身。

withOrientation

public OcrResult withOrientation(String orientation)

设置方向值。

Parameters:

orientation - 要设置的方向值

Returns:

OcrResult 对象本身。

withRegions

public OcrResult withRegions(List regions)

设置区域值。

Parameters:

regions - 要设置的区域值

Returns:

OcrResult 对象本身。

withTextAngle

public OcrResult withTextAngle(double textAngle)

设置 textAngle 值。

Parameters:

textAngle - 要设置的 textAngle 值

Returns:

OcrResult 对象本身。

适用于