ContentSafetyModelFactory.ImageCategoriesAnalysis Method

Definition

Initializes a new instance of ImageCategoriesAnalysis.

public static Azure.AI.ContentSafety.ImageCategoriesAnalysis ImageCategoriesAnalysis (Azure.AI.ContentSafety.ImageCategory category = default, int? severity = default);
static member ImageCategoriesAnalysis : Azure.AI.ContentSafety.ImageCategory * Nullable<int> -> Azure.AI.ContentSafety.ImageCategoriesAnalysis
Public Shared Function ImageCategoriesAnalysis (Optional category As ImageCategory = Nothing, Optional severity As Nullable(Of Integer) = Nothing) As ImageCategoriesAnalysis

Parameters

category
ImageCategory

The image analysis category.

severity
Nullable<Int32>

The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’, and the output value can be 0, 2, 4, 6.

Returns

A new ImageCategoriesAnalysis instance for mocking.

Applies to