DetectedTextLine Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DetectedTextLine
- com.
Implements
public final class DetectedTextLine
implements JsonSerializable<DetectedTextLine>
Represents a single line of text in the image.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Detected |
fromJson(JsonReader jsonReader)
Reads an instance of Detected |
List<Image |
getBoundingPolygon()
Get the bounding |
String |
getText()
Get the text property: Text content of the detected text line. |
List<Detected |
getWords()
Get the words property: A list of words in this line. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DetectedTextLine fromJson(JsonReader jsonReader)
Reads an instance of DetectedTextLine from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingPolygon
public List
Get the boundingPolygon property: A bounding polygon around the text line. At the moment only quadrilaterals are supported (represented by 4 image points).
Returns:
getText
public String getText()
Get the text property: Text content of the detected text line.
Returns:
getWords
public List
Get the words property: A list of words in this line.
Returns:
toJson
Applies to
Azure SDK for Java