簡體   English   中英

Azure認知服務-面部API響應:保留字段還是錯誤?

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

在Azure Cognitive Services Face API(請參閱例如https://azure.microsoft.com/zh-cn/services/cognitive-services/face )中,以下響應字段似乎從未觸發:

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

我是在濫用這些功能,還是有針對它們的計划,或者沒有計划激活它們?

如果您在此處查看API文檔:

  • 對於headPose ,它說:

編輯13/06/2019:醫生說

HeadPose的音高值是一個保留字段,將始終返回0

現在更改為:

headPose:面向面部的3-D滾動/偏航/俯仰角度。

  • 對於foreheadOccluded值,我在以下測試中成功獲得了true值,其中頭上有一個蓋帽(對不起,該示例,沒有很快找到其他東西!):

    • 網址: 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
    • 發送的內容: { "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 : 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
    }
  }
}]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM