你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LargePersonGroupOperations.CreateWithHttpMessagesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用用户指定的 largePersonGroupId、名称以及可选的 userData 和 recognitionModel 创建新的大型人员组。 <br /> 大型人员组是上传的人员数据的容器,包括人脸图像和人脸识别功能,最多 1,000,000 人。 <br /> 创建后,使用 LargePersonGroup Person - Create 将人员添加到组中,并调用 LargePersonGroup - Train 使此组准备好 进行人脸 - 识别。 <br /> 人脸、图像和 userData 将存储在服务器上,直到调用 LargePersonGroup Person - Delete 或 LargePersonGroup - Delete 。 <Br/>
- 免费层订阅配额:1,000 个大型人员组。
- S0 层订阅配额:1,000,000 个大型人员组。 <应指定 br/> “recognitionModel”以与此大型人员组相关联。 “recognitionModel”的默认值为“recognition_01”,如果需要最新的模型,请在此参数中显式指定所需的模型。 添加到现有大型人员组的新人脸将使用已与集合关联的识别模型。 大型人员组中的现有人脸特征无法更新为由其他版本的识别模型提取的特征。
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse> CreateWithHttpMessagesAsync (string largePersonGroupId, string name, string userData = default, string recognitionModel = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
override this.CreateWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
Public Function CreateWithHttpMessagesAsync (largePersonGroupId As String, name As String, Optional userData As String = Nothing, Optional recognitionModel As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse)
参数
- largePersonGroupId
- String
引用特定大型人员组的 ID。
- name
- String
用户定义的名称,最大长度为 128。
- userData
- String
用户指定的数据。 长度不应超过 16KB。
- recognitionModel
- String
可能的值包括:“recognition_01”、“recognition_02”
- customHeaders
- Dictionary<String,List<String>>
将添加到请求的标头。
- cancellationToken
- CancellationToken
取消标记。
返回
实现
例外
操作返回无效状态代码时引发
当所需的参数为 null 时引发
当所需的参数为 null 时引发