Line Class

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

public class Line

An object representing a recognized text line.

Method Summary

Modifier and Type Method and Description
Appearance appearance()

Get the appearance value.

List<Double> boundingBox()

Get the boundingBox value.

String language()

Get the language value.

String text()

Get the text value.

Line withAppearance(Appearance appearance)

Set the appearance value.

Line withBoundingBox(List<Double> boundingBox)

Set the boundingBox value.

Line withLanguage(String language)

Set the language value.

Line withText(String text)

Set the text value.

Line withWords(List<Word> words)

Set the words value.

List<Word> words()

Get the words value.

Method Details

appearance

public Appearance appearance()

Get the appearance value.

Returns:

the appearance value

boundingBox

public List boundingBox()

Get the boundingBox value.

Returns:

the boundingBox value

language

public String language()

Get the language value.

Returns:

the language value

text

public String text()

Get the text value.

Returns:

the text value

withAppearance

public Line withAppearance(Appearance appearance)

Set the appearance value.

Parameters:

appearance - the appearance value to set

Returns:

the Line object itself.

withBoundingBox

public Line withBoundingBox(List boundingBox)

Set the boundingBox value.

Parameters:

boundingBox - the boundingBox value to set

Returns:

the Line object itself.

withLanguage

public Line withLanguage(String language)

Set the language value.

Parameters:

language - the language value to set

Returns:

the Line object itself.

withText

public Line withText(String text)

Set the text value.

Parameters:

text - the text value to set

Returns:

the Line object itself.

withWords

public Line withWords(List words)

Set the words value.

Parameters:

words - the words value to set

Returns:

the Line object itself.

words

public List words()

Get the words value.

Returns:

the words value

Applies to