gpt4 book ai didi

azure - Microsoft Azure Face API - 人脸检测返回值,但不返回faceId

转载 作者:行者123 更新时间:2023-12-03 06:12:18 27 4
gpt4 key购买 nike

Microsoft Azure Face API - 人脸检测返回对象

{
"faceRectangle": {
"top": 114,
"left": 206,
"width": 167,
"height": 167
}
}

但我需要faceId。它不返回faceId。我没有找到解决方案。

enter image description here

最佳答案

我在我的环境中进行了尝试并得到了以下结果:

如果您需要获取图片的人脸Id,可以使用以下请求。

在请求中需要添加returnFaceId =true来获取人脸Id。

Post https://your-azure-faceapi-endpoint.cognitiveservices.azure.com/face/v1.0/detect?returnFaceId =true
{ "url": "{Image Url here}" }
Header:
Ocp-Apim-Subscription-Key : "your-api-key"

postman : enter image description here

引用:

Face - Detect With Url - REST API (Azure Cognitive Services - Face) | Microsoft Learn

关于azure - Microsoft Azure Face API - 人脸检测返回值,但不返回faceId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76618780/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com