Class OcrResult
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.OcrResult
-
public class OcrResult extends Object
The OcrResult model.
-
-
Constructor Summary
Constructors Constructor Description OcrResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Detail
-
language
public String language()
Get the language value.- Returns:
- the language value
-
withLanguage
public OcrResult withLanguage(String language)
Set the language value.- Parameters:
language
- the language value to set- Returns:
- the OcrResult object itself.
-
textAngle
public double textAngle()
Get the textAngle value.- Returns:
- the textAngle value
-
withTextAngle
public OcrResult withTextAngle(double textAngle)
Set the textAngle value.- Parameters:
textAngle
- the textAngle value to set- Returns:
- the OcrResult object itself.
-
orientation
public String orientation()
Get the orientation value.- Returns:
- the orientation value
-
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<OcrRegion> regions)
Set the regions value.- Parameters:
regions
- the regions value to set- Returns:
- the OcrResult object itself.
-
modelVersion
public String modelVersion()
Get the modelVersion value.- Returns:
- the modelVersion value
-
-