【问题标题】:Azure Cognitive Services - Face API Response: Reserved Fields or Bugs?Azure 认知服务 - 人脸 API 响应:保留字段或错误?
【发布时间】:2019-04-05 09:09:04
【问题描述】:

在 Azure 认知服务人脸 API(参见例如 https://azure.microsoft.com/en-us/services/cognitive-services/face)中,以下响应字段似乎从未触发:

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

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

【问题讨论】:

  • PS 版主:我知道这是特定于服务的,但 Azure 正在使用 stackoverflow 来解决技术问题。另外:如果问题不清楚,请提出建设性的改进建议,而不是简单地投反对票。谢谢!

标签: azure microsoft-cognitive azure-cognitive-services face-api


【解决方案1】:

如果您查看 API 文档here

  • 对于headPose,它说:

编辑 13/06/2019:医生说

HeadPose的pitch值是一个保留字段,会一直返回0

现在改为:

headPose:面部方向的 3-D 滚动/偏航/俯仰角。

  • 对于foreheadOccluded值,我在下面的测试中成功得到true值,头上有一个帽子(对不起样品,没有很快找到其他东西!):

    • 网址: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 次,其中一个人的眼睛上方有一个矩形:

    • 网址: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
    }
  }
}]

【讨论】:

  • Nicolas R - 看起来 headPose pitch 现在可以不为零了?! :) 他们并没有很好地宣传这些事实......
  • 是的,好点子!医生现在说headPose: 3-D roll/yaw/pitch angles for face direction.。将编辑我的回复
猜你喜欢
  • 1970-01-01
  • 2021-08-31
  • 2018-09-18
  • 1970-01-01
  • 2017-05-25
  • 2017-09-26
  • 2018-11-27
  • 1970-01-01
  • 2017-01-17
相关资源
最近更新 更多