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

ICustomVisionTrainingClient.CreateImageRegionsWithHttpMessagesAsync 方法

定义

创建一组映像区域。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionCreateSummary>> CreateImageRegionsWithHttpMessagesAsync (Guid projectId, Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionCreateBatch batch, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateImageRegionsWithHttpMessagesAsync : Guid * Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionCreateBatch * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionCreateSummary>>
Public Function CreateImageRegionsWithHttpMessagesAsync (projectId As Guid, batch As ImageRegionCreateBatch, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ImageRegionCreateSummary))

参数

projectId
Guid

项目 ID。

batch
ImageRegionCreateBatch

包含标记和边界框的映像区域的批。 限制为 64。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

注解

此 API 接受一批图像区域和(可选)标记,以使用区域信息更新现有图像。 批处理中有 64 个条目的限制。

适用于