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

PersonGroupOperationsExtensions.CreateAsync 方法

定义

使用指定的 personGroupId、名称以及用户提供的 userData 和 recognitionModel 创建新的人员组。 <br/> 人员组是上传的人员数据的容器,包括人脸图像和人脸识别功能。 <br /> 创建后,使用 PersonGroup Person - Create 将人员添加到组中,然后调用 PersonGroup - Train 使此组准备好进行 人脸 - 识别。 <br /> 人员的人脸、图像和 userData 将存储在服务器上,直到调用 PersonGroup Person - DeletePersonGroup - Delete 。 <Br/>

  • 免费层订阅配额:1,000 人组。 每人最多容纳1,000人。
  • S0 层订阅配额:1,000,000 人组。 每人最多容纳10,000人。
  • 若要处理更大规模的人脸识别问题,请考虑使用 LargePersonGroup。 <应指定 br/> “recognitionModel”以与此人员组相关联。 “recognitionModel”的默认值为“recognition_01”,如果需要最新的模型,请在此参数中显式指定所需的模型。 添加到现有人员组的新人脸将使用已与集合关联的识别模型。 无法将人员组中的现有人脸特征更新为由其他版本的识别模型提取的特征。
public static System.Threading.Tasks.Task CreateAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IPersonGroupOperations operations, string personGroupId, string name, string userData = default, string recognitionModel = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IPersonGroupOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CreateAsync (operations As IPersonGroupOperations, personGroupId As String, name As String, Optional userData As String = Nothing, Optional recognitionModel As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

operations
IPersonGroupOperations

此扩展方法的操作组。

personGroupId
String

引用特定人员组的 ID。

name
String

用户定义的名称,最大长度为 128。

userData
String

用户指定的数据。 长度不应超过 16KB。

recognitionModel
String

可能的值包括:“recognition_01”、“recognition_02”

cancellationToken
CancellationToken

取消标记。

返回

适用于