Class ImageAnalysis
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ImageAnalysis
-
public class ImageAnalysis extends Object
Result of AnalyzeImage operation.
-
-
Constructor Summary
Constructors Constructor Description ImageAnalysis()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdultInfo
adult()
Get the adult value.List<DetectedBrand>
brands()
Get the brands value.List<Category>
categories()
Get the categories value.ColorInfo
color()
Get the color value.ImageDescriptionDetails
description()
Get the description value.List<FaceDescription>
faces()
Get the faces value.ImageType
imageType()
Get the imageType value.ImageMetadata
metadata()
Get the metadata value.String
modelVersion()
Get the modelVersion value.List<DetectedObject>
objects()
Get the objects value.String
requestId()
Get the requestId value.List<ImageTag>
tags()
Get the tags value.ImageAnalysis
withAdult(AdultInfo adult)
Set the adult value.ImageAnalysis
withBrands(List<DetectedBrand> brands)
Set the brands value.ImageAnalysis
withCategories(List<Category> categories)
Set the categories value.ImageAnalysis
withColor(ColorInfo color)
Set the color value.ImageAnalysis
withDescription(ImageDescriptionDetails description)
Set the description value.ImageAnalysis
withFaces(List<FaceDescription> faces)
Set the faces value.ImageAnalysis
withImageType(ImageType imageType)
Set the imageType value.ImageAnalysis
withMetadata(ImageMetadata metadata)
Set the metadata value.ImageAnalysis
withModelVersion(String modelVersion)
Set the modelVersion value.ImageAnalysis
withObjects(List<DetectedObject> objects)
Set the objects value.ImageAnalysis
withRequestId(String requestId)
Set the requestId value.ImageAnalysis
withTags(List<ImageTag> tags)
Set the tags value.
-
-
-
Method Detail
-
categories
public List<Category> categories()
Get the categories value.- Returns:
- the categories value
-
withCategories
public ImageAnalysis withCategories(List<Category> categories)
Set the categories value.- Parameters:
categories
- the categories value to set- Returns:
- the ImageAnalysis object itself.
-
adult
public AdultInfo adult()
Get the adult value.- Returns:
- the adult value
-
withAdult
public ImageAnalysis withAdult(AdultInfo adult)
Set the adult value.- Parameters:
adult
- the adult value to set- Returns:
- the ImageAnalysis object itself.
-
color
public ColorInfo color()
Get the color value.- Returns:
- the color value
-
withColor
public ImageAnalysis withColor(ColorInfo color)
Set the color value.- Parameters:
color
- the color value to set- Returns:
- the ImageAnalysis object itself.
-
imageType
public ImageType imageType()
Get the imageType value.- Returns:
- the imageType value
-
withImageType
public ImageAnalysis withImageType(ImageType imageType)
Set the imageType value.- Parameters:
imageType
- the imageType value to set- Returns:
- the ImageAnalysis object itself.
-
withTags
public ImageAnalysis withTags(List<ImageTag> tags)
Set the tags value.- Parameters:
tags
- the tags value to set- Returns:
- the ImageAnalysis object itself.
-
description
public ImageDescriptionDetails description()
Get the description value.- Returns:
- the description value
-
withDescription
public ImageAnalysis withDescription(ImageDescriptionDetails description)
Set the description value.- Parameters:
description
- the description value to set- Returns:
- the ImageAnalysis object itself.
-
faces
public List<FaceDescription> faces()
Get the faces value.- Returns:
- the faces value
-
withFaces
public ImageAnalysis withFaces(List<FaceDescription> faces)
Set the faces value.- Parameters:
faces
- the faces value to set- Returns:
- the ImageAnalysis object itself.
-
objects
public List<DetectedObject> objects()
Get the objects value.- Returns:
- the objects value
-
withObjects
public ImageAnalysis withObjects(List<DetectedObject> objects)
Set the objects value.- Parameters:
objects
- the objects value to set- Returns:
- the ImageAnalysis object itself.
-
brands
public List<DetectedBrand> brands()
Get the brands value.- Returns:
- the brands value
-
withBrands
public ImageAnalysis withBrands(List<DetectedBrand> brands)
Set the brands value.- Parameters:
brands
- the brands value to set- Returns:
- the ImageAnalysis object itself.
-
requestId
public String requestId()
Get the requestId value.- Returns:
- the requestId value
-
withRequestId
public ImageAnalysis withRequestId(String requestId)
Set the requestId value.- Parameters:
requestId
- the requestId value to set- Returns:
- the ImageAnalysis object itself.
-
metadata
public ImageMetadata metadata()
Get the metadata value.- Returns:
- the metadata value
-
withMetadata
public ImageAnalysis withMetadata(ImageMetadata metadata)
Set the metadata value.- Parameters:
metadata
- the metadata value to set- Returns:
- the ImageAnalysis object itself.
-
modelVersion
public String modelVersion()
Get the modelVersion value.- Returns:
- the modelVersion value
-
withModelVersion
public ImageAnalysis withModelVersion(String modelVersion)
Set the modelVersion value.- Parameters:
modelVersion
- the modelVersion value to set- Returns:
- the ImageAnalysis object itself.
-
-