简体   繁体   English

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

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

In the Azure Cognitive Services Face API (see eg https://azure.microsoft.com/en-us/services/cognitive-services/face ), the following response fields never seem to trigger: 在Azure Cognitive Services Face API(请参阅例如https://azure.microsoft.com/zh-cn/services/cognitive-services/face )中,以下响应字段似乎从未触发:

  1. headPose:pitch (reserved field) headPose:pitch(保留字段)
  2. foreheadOccluded foreheadOccluded
  3. eyeOccluded eyeOccluded

Am I misusing these, or is there a plan for them, or is there no plan to activate them? 我是在滥用这些功能,还是有针对它们的计划,或者没有计划激活它们?

If you look at the API documentation here : 如果您在此处查看API文档:

  • For the headPose , it says: 对于headPose ,它说:

EDIT 13/06/2019: doc was saying 编辑13/06/2019:医生说

HeadPose's pitch value is a reserved field and will always return 0 HeadPose的音高值是一个保留字段,将始终返回0

Now changed to: 现在更改为:

headPose: 3-D roll/yaw/pitch angles for face direction. headPose:面向面部的3-D滚动/偏航/俯仰角度。

  • For the foreheadOccluded value, I successfully got true value in the following test, where there is a cap on the head (sorry for the sample, did not find anything else quickly!): 对于foreheadOccluded值,我在以下测试中成功获得了true值,其中头上有一个盖帽(对不起,该示例,没有很快找到其他东西!):

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

前额样品被阻塞

Reply received: 收到回复:

[{
  "faceId": "e6ae42a6-b008-4859-9bf5-1ae22e4b71a7",
  "faceRectangle": {
    "top": 118,
    "left": 212,
    "width": 276,
    "height": 276
  },
  "faceAttributes": {
    "occlusion": {
      "foreheadOccluded": true,
      "eyeOccluded": false,
      "mouthOccluded": false
    }
  }
}]
  • For the eyeOccluded value, I successfully got true and false values in the following test where the same person appears 2 times, one with a rectangle over the eyes: 对于eyeOccluded值,在以下测试中我成功地获得了truefalse值,其中同一个人出现2次,其中一个在眼睛上方带有矩形:

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

样品被遮挡

Reply received (please note that 1st face is the right one): 收到回复(请注意第一张脸是正确的):

[{
  "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
    }
  }
}]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM