DetectedTextWord Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DetectedTextWord
- com.
Implements
public final class DetectedTextWord
implements JsonSerializable<DetectedTextWord>
A word object consisting of a contiguous sequence of characters. For non-space delimited languages, such as Chinese, Japanese, and Korean, each character is represented as its own word.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Detected |
fromJson(JsonReader jsonReader)
Reads an instance of Detected |
List<Image |
getBoundingPolygon()
Get the bounding |
double |
getConfidence()
Get the confidence property: The level of confidence that the word was detected. |
String |
getText()
Get the text property: Text content of the word. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DetectedTextWord fromJson(JsonReader jsonReader)
Reads an instance of DetectedTextWord from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingPolygon
public List
Get the boundingPolygon property: A bounding polygon around the word. At the moment only quadrilaterals are supported (represented by 4 image points).
Returns:
getConfidence
public double getConfidence()
Get the confidence property: The level of confidence that the word was detected. Confidence scores span the range of 0.0 to 1.0 (inclusive), with higher values indicating a higher confidence of detection.
Returns:
getText
public String getText()
Get the text property: Text content of the word.
Returns:
toJson
Applies to
Azure SDK for Java