CustomVisionTrainingClientExtensions.CreateImagesFromDataAsync 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.
Add the provided images to the set of training images.
public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageCreateSummary> CreateImagesFromDataAsync (this Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient operations, Guid projectId, System.IO.Stream imageData, System.Collections.Generic.IList<Guid> tagIds = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateImagesFromDataAsync : Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient * Guid * System.IO.Stream * System.Collections.Generic.IList<Guid> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageCreateSummary>
<Extension()>
Public Function CreateImagesFromDataAsync (operations As ICustomVisionTrainingClient, projectId As Guid, imageData As Stream, Optional tagIds As IList(Of Guid) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.
- cancellationToken
- CancellationToken
The cancellation token.
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
Azure SDK for .NET