Class ReadResult
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ReadResult
-
public class ReadResult extends Object
Text extracted from a page in the input document.
-
-
Constructor Summary
Constructors Constructor Description ReadResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
angle()
Get the angle value.double
height()
Get the height value.String
language()
Get the language value.List<Line>
lines()
Get the lines value.int
page()
Get the page value.TextRecognitionResultDimensionUnit
unit()
Get the unit value.double
width()
Get the width value.ReadResult
withAngle(double angle)
Set the angle value.ReadResult
withHeight(double height)
Set the height value.ReadResult
withLanguage(String language)
Set the language value.ReadResult
withLines(List<Line> lines)
Set the lines value.ReadResult
withPage(int page)
Set the page value.ReadResult
withUnit(TextRecognitionResultDimensionUnit unit)
Set the unit value.ReadResult
withWidth(double width)
Set the width value.
-
-
-
Method Detail
-
page
public int page()
Get the page value.- Returns:
- the page value
-
withPage
public ReadResult withPage(int page)
Set the page value.- Parameters:
page
- the page value to set- Returns:
- the ReadResult object itself.
-
language
public String language()
Get the language value.- Returns:
- the language value
-
withLanguage
public ReadResult withLanguage(String language)
Set the language value.- Parameters:
language
- the language value to set- Returns:
- the ReadResult object itself.
-
angle
public double angle()
Get the angle value.- Returns:
- the angle value
-
withAngle
public ReadResult withAngle(double angle)
Set the angle value.- Parameters:
angle
- the angle value to set- Returns:
- the ReadResult object itself.
-
width
public double width()
Get the width value.- Returns:
- the width value
-
withWidth
public ReadResult withWidth(double width)
Set the width value.- Parameters:
width
- the width value to set- Returns:
- the ReadResult object itself.
-
height
public double height()
Get the height value.- Returns:
- the height value
-
withHeight
public ReadResult withHeight(double height)
Set the height value.- Parameters:
height
- the height value to set- Returns:
- the ReadResult object itself.
-
unit
public TextRecognitionResultDimensionUnit unit()
Get the unit value.- Returns:
- the unit value
-
withUnit
public ReadResult withUnit(TextRecognitionResultDimensionUnit unit)
Set the unit value.- Parameters:
unit
- the unit value to set- Returns:
- the ReadResult object itself.
-
withLines
public ReadResult withLines(List<Line> lines)
Set the lines value.- Parameters:
lines
- the lines value to set- Returns:
- the ReadResult object itself.
-
-