你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LargeFaceListOperations.CreateWithHttpMessagesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用用户指定的 largeFaceListId、名称以及可选的 userData 和 recognitionModel 创建空的大型人脸列表。 <br /> 大型人脸列表是一个人脸列表,最多包含 1,000,000 张人脸,由 人脸 - 查找相似人脸使用。 <>创建后,用户应使用 LargeFaceList Face - Add 导入人脸和 LargeFaceList - Train,使其准备好使用 Face - FindSimilar。 人脸存储在服务器上,直到调用 LargeFaceList - Delete 。 <br/> Find Similar 用于查找类似名人的人脸、相似人脸筛选或作为浅色人脸识别等方案。 但如果实际用途是识别人员,请使用 PersonGroup / LargePersonGroup 和 Face - Identify。 <Br/>
- 免费层订阅配额:64 个大人脸列表。
- S0 层订阅配额:1,000,000 张大型人脸列表。 <应指定 br/> 'recognitionModel' 以与此大型人脸列表相关联。 “recognitionModel”的默认值为“recognition_01”,如果需要最新的模型,请在此参数中显式指定所需的模型。 添加到现有大型人脸列表的新人脸将使用已与集合关联的识别模型。 大型人脸列表中的现有人脸特征无法更新为由其他版本的识别模型提取的特征。
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse> CreateWithHttpMessagesAsync (string largeFaceListId, 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 (largeFaceListId 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)
参数
- largeFaceListId
- String
引用特定大型人脸列表的 ID。
- name
- String
用户定义的名称,最大长度为 128。
- userData
- String
用户指定的数据。 长度不应超过 16KB。
- recognitionModel
- String
可能的值包括:“recognition_01”、“recognition_02”
- customHeaders
- Dictionary<String,List<String>>
将添加到请求的标头。
- cancellationToken
- CancellationToken
取消标记。
返回
实现
例外
当操作返回无效状态代码时引发
当所需参数为 null 时引发
当所需参数为 null 时引发