将面部数据从一个人组复制到另一个人组

问题描述 投票:0回答:1

是否可以在同一预订中将数据从一个persongroup复制到另一个persongroup中的Azure Face API。我尝试了snapshot,而当apply时出现以下错误。

"error": {
    "code": "BadArgument",
    "message": "Permission denied."
  }
microsoft-cognitive azure-cognitive-services
1个回答
0
投票

我可以站在一边代表您的问题。通常,此问题是由applyScope时的taking a snapshot参数引起的。

applyScope定义可以将快照应用于哪个Azure面孔服务订阅。如果您只想在同一Azure人脸服务订阅中应用快照,则应使用以下请求正文进行快照:

{
    "type": "PersonGroup",
    "objectId": "<PersonGroup ID>",
    "applyScope": ["<your Azure face service subscription ID>"],
    "userData": "{user provided user data}"
}

您可以在Azure门户上找到订阅ID:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.