ContentSafetyModelFactory.AnalyzeImageResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AnalyzeImageResult(IEnumerable<ImageCategoriesAnalysis>) |
Initializes a new instance of AnalyzeImageResult. |
AnalyzeImageResult(ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult) |
Initializes a new instance of AnalyzeImageResult. |
AnalyzeImageResult(IEnumerable<ImageCategoriesAnalysis>)
- Source:
- ContentSafetyModelFactory.cs
Initializes a new instance of AnalyzeImageResult.
public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult (System.Collections.Generic.IEnumerable<Azure.AI.ContentSafety.ImageCategoriesAnalysis> categoriesAnalysis = default);
static member AnalyzeImageResult : seq<Azure.AI.ContentSafety.ImageCategoriesAnalysis> -> Azure.AI.ContentSafety.AnalyzeImageResult
Public Shared Function AnalyzeImageResult (Optional categoriesAnalysis As IEnumerable(Of ImageCategoriesAnalysis) = Nothing) As AnalyzeImageResult
Parameters
- categoriesAnalysis
- IEnumerable<ImageCategoriesAnalysis>
Analysis result for categories.
Returns
A new AnalyzeImageResult instance for mocking.
Applies to
AnalyzeImageResult(ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult, ImageAnalyzeSeverityResult)
- Source:
- ContentSafetyModelFactory.cs
Initializes a new instance of AnalyzeImageResult.
public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult (Azure.AI.ContentSafety.ImageAnalyzeSeverityResult hateResult = default, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult selfHarmResult = default, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult sexualResult = default, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult violenceResult = default);
static member AnalyzeImageResult : Azure.AI.ContentSafety.ImageAnalyzeSeverityResult * Azure.AI.ContentSafety.ImageAnalyzeSeverityResult * Azure.AI.ContentSafety.ImageAnalyzeSeverityResult * Azure.AI.ContentSafety.ImageAnalyzeSeverityResult -> Azure.AI.ContentSafety.AnalyzeImageResult
Public Shared Function AnalyzeImageResult (Optional hateResult As ImageAnalyzeSeverityResult = Nothing, Optional selfHarmResult As ImageAnalyzeSeverityResult = Nothing, Optional sexualResult As ImageAnalyzeSeverityResult = Nothing, Optional violenceResult As ImageAnalyzeSeverityResult = Nothing) As AnalyzeImageResult
Parameters
- hateResult
- ImageAnalyzeSeverityResult
Analysis result for Hate category.
- selfHarmResult
- ImageAnalyzeSeverityResult
Analysis result for SelfHarm category.
- sexualResult
- ImageAnalyzeSeverityResult
Analysis result for Sexual category.
- violenceResult
- ImageAnalyzeSeverityResult
Analysis result for Violence category.
Returns
A new AnalyzeImageResult instance for mocking.
Applies to
Azure SDK for .NET