共用方式為


CustomVisionTrainingClientExtensions.GetTaggedImageCountAsync Method

Definition

Gets the number of images tagged with the provided {tagIds}.

public static System.Threading.Tasks.Task<int?> GetTaggedImageCountAsync (this Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient operations, Guid projectId, Guid? iterationId = default, System.Collections.Generic.IList<Guid> tagIds = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTaggedImageCountAsync : Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient * Guid * Nullable<Guid> * System.Collections.Generic.IList<Guid> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<int>>
<Extension()>
Public Function GetTaggedImageCountAsync (operations As ICustomVisionTrainingClient, projectId As Guid, Optional iterationId As Nullable(Of Guid) = Nothing, Optional tagIds As IList(Of Guid) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Nullable(Of Integer))

Parameters

operations
ICustomVisionTrainingClient

The operations group for this extension method.

projectId
Guid

The project id.

iterationId
Nullable<Guid>

The iteration id. Defaults to workspace.

tagIds
IList<Guid>

A list of tags ids to filter the images to count. Defaults to all tags when null.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned

Applies to