Line Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. Line
- com.
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:
boundingBox
public List
Get the boundingBox value.
Returns:
language
public String language()
Get the language value.
Returns:
text
public String text()
Get the text value.
Returns:
withAppearance
public Line withAppearance(Appearance appearance)
Set the appearance value.
Parameters:
Returns:
withBoundingBox
public Line withBoundingBox(List
Set the boundingBox value.
Parameters:
Returns:
withLanguage
public Line withLanguage(String language)
Set the language value.
Parameters:
Returns:
withText
public Line withText(String text)
Set the text value.
Parameters:
Returns:
withWords
public Line withWords(List
Set the words value.
Parameters:
Returns:
words
public List
Get the words value.
Returns:
Applies to
Azure SDK for Java