你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImageModerationExtensions.EvaluateFileInputAsync 方法

定义

返回图像包含猥亵内容或成人内容的概率。

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate> EvaluateFileInputAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration operations, System.IO.Stream imageStream, bool? cacheImage = default, System.Threading.CancellationToken cancellationToken = default);
static member EvaluateFileInputAsync : Microsoft.Azure.CognitiveServices.ContentModerator.IImageModeration * System.IO.Stream * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Evaluate>
<Extension()>
Public Function EvaluateFileInputAsync (operations As IImageModeration, imageStream As Stream, Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Evaluate)

参数

operations
IImageModeration

此扩展方法的操作组。

imageStream
Stream

图像文件。

cacheImage
Nullable<Boolean>

是否保留提交的映像供将来使用;如果省略,则默认为 false。

cancellationToken
CancellationToken

取消标记。

返回

适用于