Class Line
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.Line
-
public class Line extends Object
An object representing a recognized text line.
-
-
Constructor Summary
Constructors Constructor Description Line()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Detail
-
language
public String language()
Get the language value.- Returns:
- the language value
-
withLanguage
public Line withLanguage(String language)
Set the language value.- Parameters:
language
- the language value to set- Returns:
- the Line object itself.
-
boundingBox
public List<Double> boundingBox()
Get the boundingBox value.- Returns:
- the boundingBox value
-
withBoundingBox
public Line withBoundingBox(List<Double> boundingBox)
Set the boundingBox value.- Parameters:
boundingBox
- the boundingBox value to set- Returns:
- the Line object itself.
-
appearance
public Appearance appearance()
Get the appearance value.- Returns:
- the appearance value
-
withAppearance
public Line withAppearance(Appearance appearance)
Set the appearance value.- Parameters:
appearance
- the appearance value to set- Returns:
- the Line object itself.
-
text
public String text()
Get the text value.- Returns:
- the text value
-
withText
public Line withText(String text)
Set the text value.- Parameters:
text
- the text value to set- Returns:
- the Line object itself.
-
-