CustomVisionTrainingClientExtensions.CreateImagesFromData Method

Definition

Add the provided images to the set of training images.

public static Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageCreateSummary CreateImagesFromData (this Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient operations, Guid projectId, System.IO.Stream imageData, System.Collections.Generic.IList<Guid> tagIds = default);
static member CreateImagesFromData : Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient * Guid * System.IO.Stream * System.Collections.Generic.IList<Guid> -> Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageCreateSummary
<Extension()>
Public Function CreateImagesFromData (operations As ICustomVisionTrainingClient, projectId As Guid, imageData As Stream, Optional tagIds As IList(Of Guid) = Nothing) As ImageCreateSummary

Parameters

operations
ICustomVisionTrainingClient

The operations group for this extension method.

projectId
Guid

The project id.

imageData
Stream

Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.

tagIds
IList<Guid>

The tags ids with which to tag each image. Limited to 20.

Returns

Remarks

This API accepts body content as multipart/form-data and application/octet-stream. When using multipart multiple image files can be sent at once, with a maximum of 64 files

Applies to