ImageAnalysisResult Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. ImageAnalysisResult
- com.
Implements
public final class ImageAnalysisResult
implements JsonSerializable<ImageAnalysisResult>
Represents the outcome of an Image Analysis operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Caption |
getCaption()
Get the caption property: The generated phrase that describes the content of the analyzed image. |
Dense |
getDenseCaptions()
Get the dense |
Image |
getMetadata()
Get the metadata property: Metadata associated with the analyzed image. |
String |
getModelVersion()
Get the model |
Objects |
getObjects()
Get the objects property: A list of detected physical objects in the analyzed image, and their location. |
People |
getPeople()
Get the people property: A list of detected people in the analyzed image, and their location. |
Read |
getRead()
Get the read property: The extracted printed and hand-written text in the analyze image. |
Smart |
getSmartCrops()
Get the smart |
Tags |
getTags()
Get the tags property: A list of content tags in the analyzed image. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ImageAnalysisResult fromJson(JsonReader jsonReader)
Reads an instance of ImageAnalysisResult from the JsonReader.
Parameters:
Returns:
Throws:
getCaption
public CaptionResult getCaption()
Get the caption property: The generated phrase that describes the content of the analyzed image.
Returns:
getDenseCaptions
public DenseCaptionsResult getDenseCaptions()
Get the denseCaptions property: The up to 10 generated phrases, the first describing the content of the whole image, and the others describing the content of different regions of the image.
Returns:
getMetadata
public ImageMetadata getMetadata()
Get the metadata property: Metadata associated with the analyzed image.
Returns:
getModelVersion
public String getModelVersion()
Get the modelVersion property: The cloud AI model used for the analysis.
Returns:
getObjects
public ObjectsResult getObjects()
Get the objects property: A list of detected physical objects in the analyzed image, and their location.
Returns:
getPeople
public PeopleResult getPeople()
Get the people property: A list of detected people in the analyzed image, and their location.
Returns:
getRead
public ReadResult getRead()
Get the read property: The extracted printed and hand-written text in the analyze image. Also knows as OCR.
Returns:
getSmartCrops
public SmartCropsResult getSmartCrops()
Get the smartCrops property: A list of crop regions at the desired as aspect ratios (if provided) that can be used as image thumbnails. These regions preserve as much content as possible from the analyzed image, with priority given to detected faces.
Returns:
getTags
public TagsResult getTags()
Get the tags property: A list of content tags in the analyzed image.
Returns:
toJson
Applies to
Azure SDK for Java