Azure 认知服务 - 面部 API 响应:保留字段或错误?

Azure Cognitive Services - Face API Response: Reserved Fields or Bugs?

在 Azure 认知服务界面 API(参见 https://azure.microsoft.com/en-us/services/cognitive-services/face)中,以下响应字段似乎永远不会触发:

  1. headPose:pitch (保留字段)
  2. 额头被遮挡
  3. 眼睛被遮挡

我是在滥用这些,还是有针对它们的计划,或者没有激活它们的计划?

如果您查看 API 文档 here:

  • 对于 headPose,它表示:

编辑 13/06/2019:医生说

HeadPose's pitch value is a reserved field and will always return 0

现改为:

headPose: 3-D roll/yaw/pitch angles for face direction.

  • 对于foreheadOccluded的值,我在下面的测试中成功得到了true的值,这里头上有个帽子(对不起样本,没找到其他事情很快!):

    • URL: https://westeurope.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=occlusion
    • 发送的内容:{ "url": "https://www.knijff.com/markmatters/wp-content/uploads/2015/10/Trump-Red-Hat.jpg" }

收到回复:

[{
  "faceId": "e6ae42a6-b008-4859-9bf5-1ae22e4b71a7",
  "faceRectangle": {
    "top": 118,
    "left": 212,
    "width": 276,
    "height": 276
  },
  "faceAttributes": {
    "occlusion": {
      "foreheadOccluded": true,
      "eyeOccluded": false,
      "mouthOccluded": false
    }
  }
}]
  • 对于eyeOccluded的值,我在下面的测试中成功得到了truefalse的值,同一个人出现了2次,一次是长方形眼睛上方:

    • URL: https://westeurope.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=occlusion
    • 发送的内容:{ "url": "https://jov.arvojournals.org/data/Journals/JOV/933685/i1534-7362-14-13-14-f09.png" }

收到回复(请注意第一张脸是正确的):

[{
  "faceId": "4c2eb52e-2fd4-456c-bdae-694df1adc571",
  "faceRectangle": {
    "top": 204,
    "left": 683,
    "width": 297,
    "height": 297
  },
  "faceAttributes": {
    "occlusion": {
      "foreheadOccluded": false,
      "eyeOccluded": false,
      "mouthOccluded": true
    }
  }
}, {
  "faceId": "5b9dc938-e6cf-4fe9-8e6c-8649fef44e7a",
  "faceRectangle": {
    "top": 213,
    "left": 107,
    "width": 275,
    "height": 275
  },
  "faceAttributes": {
    "occlusion": {
      "foreheadOccluded": false,
      "eyeOccluded": true,
      "mouthOccluded": false
    }
  }
}]