共用方式為


OcrResult Class

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

public class OcrResult

The OcrResult model.

Method Summary

Modifier and Type Method and Description
String language()

Get the language value.

String modelVersion()

Get the modelVersion value.

String orientation()

Get the orientation value.

List<OcrRegion> regions()

Get the regions value.

double textAngle()

Get the textAngle value.

OcrResult withLanguage(String language)

Set the language value.

OcrResult withModelVersion(String modelVersion)

Set the modelVersion value.

OcrResult withOrientation(String orientation)

Set the orientation value.

OcrResult withRegions(List<OcrRegion> regions)

Set the regions value.

OcrResult withTextAngle(double textAngle)

Set the textAngle value.

Method Details

language

public String language()

Get the language value.

Returns:

the language value

modelVersion

public String modelVersion()

Get the modelVersion value.

Returns:

the modelVersion value

orientation

public String orientation()

Get the orientation value.

Returns:

the orientation value

regions

public List regions()

Get the regions value.

Returns:

the regions value

textAngle

public double textAngle()

Get the textAngle value.

Returns:

the textAngle value

withLanguage

public OcrResult withLanguage(String language)

Set the language value.

Parameters:

language - the language value to set

Returns:

the OcrResult object itself.

withModelVersion

public OcrResult withModelVersion(String modelVersion)

Set the modelVersion value.

Parameters:

modelVersion - the modelVersion value to set

Returns:

the OcrResult object itself.

withOrientation

public OcrResult withOrientation(String orientation)

Set the orientation value.

Parameters:

orientation - the orientation value to set

Returns:

the OcrResult object itself.

withRegions

public OcrResult withRegions(List regions)

Set the regions value.

Parameters:

regions - the regions value to set

Returns:

the OcrResult object itself.

withTextAngle

public OcrResult withTextAngle(double textAngle)

Set the textAngle value.

Parameters:

textAngle - the textAngle value to set

Returns:

the OcrResult object itself.

Applies to