Microsoft Azure Face API - 人脸检测返回对象
{
"faceRectangle": {
"top": 114,
"left": 206,
"width": 167,
"height": 167
}
}
但我需要faceId。它不返回faceId。我没有找到解决方案。
最佳答案
我在我的环境中进行了尝试并得到了以下结果:
如果您需要获取图片的人脸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 :
引用:
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/