Delen via


ReadResult Class

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

public class ReadResult

Text extracted from a page in the input document.

Method Summary

Modifier and Type Method and 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 Details

angle

public double angle()

Get the angle value.

Returns:

the angle value

height

public double height()

Get the height value.

Returns:

the height value

language

public String language()

Get the language value.

Returns:

the language value

lines

public List lines()

Get the lines value.

Returns:

the lines value

page

public int page()

Get the page value.

Returns:

the page value

unit

public TextRecognitionResultDimensionUnit unit()

Get the unit value.

Returns:

the unit value

width

public double width()

Get the width value.

Returns:

the width value

withAngle

public ReadResult withAngle(double angle)

Set the angle value.

Parameters:

angle - the angle value to set

Returns:

the ReadResult object itself.

withHeight

public ReadResult withHeight(double height)

Set the height value.

Parameters:

height - the height value to set

Returns:

the ReadResult object itself.

withLanguage

public ReadResult withLanguage(String language)

Set the language value.

Parameters:

language - the language value to set

Returns:

the ReadResult object itself.

withLines

public ReadResult withLines(List lines)

Set the lines value.

Parameters:

lines - the lines value to set

Returns:

the ReadResult object itself.

withPage

public ReadResult withPage(int page)

Set the page value.

Parameters:

page - the page value to set

Returns:

the ReadResult object itself.

withUnit

public ReadResult withUnit(TextRecognitionResultDimensionUnit unit)

Set the unit value.

Parameters:

unit - the unit value to set

Returns:

the ReadResult object itself.

withWidth

public ReadResult withWidth(double width)

Set the width value.

Parameters:

width - the width value to set

Returns:

the ReadResult object itself.

Applies to