Microsoft Face API 查看数据库?
Microsoft Face API see database?
我正在使用 Microsoft Face API,我有很多人的照片。我知道在 azure 数据库中它只保存了脸部的几何形状,而不是整张照片。现在我想查看该数据。我知道我可以看到部分数据,因为我正在发出请求,例如列出所有大型人员组或列出当前大型组中的所有人员。但我想从 Azure 门户或其他地方查看我保存在 Azure 数据库中的所有人员、personId、组和照片几何数据。
我的问题是:
我可以查看我保存在 azure 数据库中的所有数据吗?
Microsoft Face API
是一项 SaaS 服务:您不会在自己的订阅中托管 API 使用的任何资源。所以要点是:您的 Azure 数据库中没有保存数据。
您将无法直接访问托管用于保存面孔的元数据的资源,您只能访问可通过 API 访问的数据:https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236
所以如果你想获取面部标志,你只能在调用 Detect
方法时获取它们,它们具有以下属性:
An array of 27-point face landmarks pointing to the important
positions of face components. To return this, it requires
"returnFaceLandmarks" parameter to be true.
因此,您将获得以下物品:
"faceLandmarks": {
"pupilLeft": {
"x": 412.7,
"y": 78.4
},
"pupilRight": {
"x": 446.8,
"y": 74.2
},
"noseTip": {
"x": 437.7,
"y": 92.4
},
"mouthLeft": {
"x": 417.8,
"y": 114.4
},
"mouthRight": {
"x": 451.3,
"y": 109.3
},
"eyebrowLeftOuter": {
"x": 397.9,
"y": 78.5
},
"eyebrowLeftInner": {
"x": 425.4,
"y": 70.5
},
"eyeLeftOuter": {
"x": 406.7,
"y": 80.6
},
"eyeLeftTop": {
"x": 412.2,
"y": 76.2
},
"eyeLeftBottom": {
"x": 413.0,
"y": 80.1
},
"eyeLeftInner": {
"x": 418.9,
"y": 78.0
},
"eyebrowRightInner": {
"x": 4.8,
"y": 69.7
},
"eyebrowRightOuter": {
"x": 5.5,
"y": 68.5
},
"eyeRightInner": {
"x": 441.5,
"y": 75.0
},
"eyeRightTop": {
"x": 446.4,
"y": 71.7
},
"eyeRightBottom": {
"x": 447.0,
"y": 75.3
},
"eyeRightOuter": {
"x": 451.7,
"y": 73.4
},
"noseRootLeft": {
"x": 428.0,
"y": 77.1
},
"noseRootRight": {
"x": 435.8,
"y": 75.6
},
"noseLeftAlarTop": {
"x": 428.3,
"y": 89.7
},
"noseRightAlarTop": {
"x": 442.2,
"y": 87.0
},
"noseLeftAlarOutTip": {
"x": 424.3,
"y": 96.4
},
"noseRightAlarOutTip": {
"x": 446.6,
"y": 92.5
},
"upperLipTop": {
"x": 437.6,
"y": 105.9
},
"upperLipBottom": {
"x": 437.6,
"y": 108.2
},
"underLipTop": {
"x": 436.8,
"y": 111.4
},
"underLipBottom": {
"x": 437.3,
"y": 114.5
}
},
如果你以后需要使用这些细节,如果你坚持面部,我可以建议 2 个选项:
- 在您的订阅上托管一个数据库,您将在其中存储这些设置和持久化的 FaceId
- 或在
userData
字段中传递这些值,当您保留这些值时。该字段是:User-specified data about the face list for any purpose. The maximum length is 1KB
。然后您可以稍后使用 Get 方法获取这些字段
我正在使用 Microsoft Face API,我有很多人的照片。我知道在 azure 数据库中它只保存了脸部的几何形状,而不是整张照片。现在我想查看该数据。我知道我可以看到部分数据,因为我正在发出请求,例如列出所有大型人员组或列出当前大型组中的所有人员。但我想从 Azure 门户或其他地方查看我保存在 Azure 数据库中的所有人员、personId、组和照片几何数据。 我的问题是:
我可以查看我保存在 azure 数据库中的所有数据吗?
Microsoft Face API
是一项 SaaS 服务:您不会在自己的订阅中托管 API 使用的任何资源。所以要点是:您的 Azure 数据库中没有保存数据。
您将无法直接访问托管用于保存面孔的元数据的资源,您只能访问可通过 API 访问的数据:https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236
所以如果你想获取面部标志,你只能在调用 Detect
方法时获取它们,它们具有以下属性:
An array of 27-point face landmarks pointing to the important positions of face components. To return this, it requires "returnFaceLandmarks" parameter to be true.
因此,您将获得以下物品:
"faceLandmarks": {
"pupilLeft": {
"x": 412.7,
"y": 78.4
},
"pupilRight": {
"x": 446.8,
"y": 74.2
},
"noseTip": {
"x": 437.7,
"y": 92.4
},
"mouthLeft": {
"x": 417.8,
"y": 114.4
},
"mouthRight": {
"x": 451.3,
"y": 109.3
},
"eyebrowLeftOuter": {
"x": 397.9,
"y": 78.5
},
"eyebrowLeftInner": {
"x": 425.4,
"y": 70.5
},
"eyeLeftOuter": {
"x": 406.7,
"y": 80.6
},
"eyeLeftTop": {
"x": 412.2,
"y": 76.2
},
"eyeLeftBottom": {
"x": 413.0,
"y": 80.1
},
"eyeLeftInner": {
"x": 418.9,
"y": 78.0
},
"eyebrowRightInner": {
"x": 4.8,
"y": 69.7
},
"eyebrowRightOuter": {
"x": 5.5,
"y": 68.5
},
"eyeRightInner": {
"x": 441.5,
"y": 75.0
},
"eyeRightTop": {
"x": 446.4,
"y": 71.7
},
"eyeRightBottom": {
"x": 447.0,
"y": 75.3
},
"eyeRightOuter": {
"x": 451.7,
"y": 73.4
},
"noseRootLeft": {
"x": 428.0,
"y": 77.1
},
"noseRootRight": {
"x": 435.8,
"y": 75.6
},
"noseLeftAlarTop": {
"x": 428.3,
"y": 89.7
},
"noseRightAlarTop": {
"x": 442.2,
"y": 87.0
},
"noseLeftAlarOutTip": {
"x": 424.3,
"y": 96.4
},
"noseRightAlarOutTip": {
"x": 446.6,
"y": 92.5
},
"upperLipTop": {
"x": 437.6,
"y": 105.9
},
"upperLipBottom": {
"x": 437.6,
"y": 108.2
},
"underLipTop": {
"x": 436.8,
"y": 111.4
},
"underLipBottom": {
"x": 437.3,
"y": 114.5
}
},
如果你以后需要使用这些细节,如果你坚持面部,我可以建议 2 个选项:
- 在您的订阅上托管一个数据库,您将在其中存储这些设置和持久化的 FaceId
- 或在
userData
字段中传递这些值,当您保留这些值时。该字段是:User-specified data about the face list for any purpose. The maximum length is 1KB
。然后您可以稍后使用 Get 方法获取这些字段