Udostępnij za pośrednictwem


CustomVisionTrainingClientExtensions.QueryPredictionsAsync Method

Definition

Get images that were sent to your prediction endpoint.

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.PredictionQueryResult> QueryPredictionsAsync (this Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient operations, Guid projectId, Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.PredictionQueryToken query, System.Threading.CancellationToken cancellationToken = default);
static member QueryPredictionsAsync : Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient * Guid * Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.PredictionQueryToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.PredictionQueryResult>
<Extension()>
Public Function QueryPredictionsAsync (operations As ICustomVisionTrainingClient, projectId As Guid, query As PredictionQueryToken, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PredictionQueryResult)

Parameters

operations
ICustomVisionTrainingClient

The operations group for this extension method.

projectId
Guid

The project id.

query
PredictionQueryToken

Parameters used to query the predictions. Limited to combining 2 tags.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to