ReadResult Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. ReadResult
- com.
Implements
public final class ReadResult
implements JsonSerializable<ReadResult>
The results of a Read (OCR) operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Read |
fromJson(JsonReader jsonReader)
Reads an instance of Read |
List<Detected |
getBlocks()
Get the blocks property: A list of text blocks in the image. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ReadResult fromJson(JsonReader jsonReader)
Reads an instance of ReadResult from the JsonReader.
Parameters:
jsonReader
- The JsonReader being read.
Returns:
An instance of ReadResult if the JsonReader was pointing to an instance of it, or null if it was pointing
to JSON null.
Throws:
- If the deserialized JSON object was missing any required properties.
getBlocks
public List
Get the blocks property: A list of text blocks in the image. At the moment only one block is returned, containing all the text detected in the image.
Returns:
the blocks value.
toJson
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java