Class AnalyzeImageOptions
java.lang.Object
com.azure.ai.contentsafety.models.AnalyzeImageOptions
The image analysis request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AnalyzeImageOptions class. -
Method Summary
Modifier and TypeMethodDescriptionGet the categories property: The categories will be analyzed.getImage()Get the image property: The image needs to be analyzed.Get the outputType property: This refers to the type of image analysis output.setCategories(List<ImageCategory> categories) Set the categories property: The categories will be analyzed.setOutputType(AnalyzeImageOutputType outputType) Set the outputType property: This refers to the type of image analysis output.
-
Constructor Details
-
AnalyzeImageOptions
Creates an instance of AnalyzeImageOptions class.- Parameters:
image- the image value to set.
-
-
Method Details
-
getImage
Get the image property: The image needs to be analyzed.- Returns:
- the image value.
-
getCategories
Get the categories property: The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.- Returns:
- the categories value.
-
setCategories
Set the categories property: The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.- Parameters:
categories- the categories value to set.- Returns:
- the AnalyzeImageOptions object itself.
-
getOutputType
Get the outputType property: This refers to the type of image analysis output. If no value is assigned, the default value will be "FourSeverityLevels".- Returns:
- the outputType value.
-
setOutputType
Set the outputType property: This refers to the type of image analysis output. If no value is assigned, the default value will be "FourSeverityLevels".- Parameters:
outputType- the outputType value to set.- Returns:
- the AnalyzeImageOptions object itself.
-