使っている写真はこれ。
実際の写真は顔も映っています。
Google Cloud Vision APIで機能を指定して実行しました。
機能:TYPE_UNSPECIFIED・・・未指定の機能?
結果
{
"responses": [
{}
]
}
結果は何もかえって来てないですね。
機能:FACE_DETECTION・・・画像内の顔を検出します。
結果
{
"responses": [
{
"faceAnnotations": [
{
"boundingPoly": {
"vertices": [
{
"x": 514,
"y": 29
},
{
"x": 797,
"y": 29
},
{
"x": 797,
"y": 359
},
{
"x": 514,
"y": 359
}
]
},
"fdBoundingPoly": {
"vertices": [
{
"x": 551,
"y": 89
},
{
"x": 758,
"y": 89
},
{
"x": 758,
"y": 296
},
{
"x": 551,
"y": 296
}
]
},
"landmarks": [
{
"type": "LEFT_EYE",
"position": {
"x": 618.05023,
"y": 151.86295,
"z": 0.0011230401
}
},
{
"type": "RIGHT_EYE",
"position": {
"x": 702.6415,
"y": 161.94496,
"z": -2.9262214
}
},
{
"type": "LEFT_OF_LEFT_EYEBROW",
"position": {
"x": 590.4209,
"y": 134.01431,
"z": 13.956799
}
},
{
"type": "RIGHT_OF_LEFT_EYEBROW",
"position": {
"x": 641.6335,
"y": 132.05222,
"z": -11.45213
}
},
{
"type": "LEFT_OF_RIGHT_EYEBROW",
"position": {
"x": 682.74384,
"y": 136.30646,
"z": -12.758862
}
},
{
"type": "RIGHT_OF_RIGHT_EYEBROW",
"position": {
"x": 733.27454,
"y": 149.38339,
"z": 9.215791
}
},
{
"type": "MIDPOINT_BETWEEN_EYES",
"position": {
"x": 658.9192,
"y": 150.7113,
"z": -18.28677
}
},
{
"type": "NOSE_TIP",
"position": {
"x": 654.73114,
"y": 190.53183,
"z": -55.94602
}
},
{
"type": "UPPER_LIP",
"position": {
"x": 650.79315,
"y": 228.69174,
"z": -45.609848
}
},
{
"type": "LOWER_LIP",
"position": {
"x": 649.78094,
"y": 253.5664,
"z": -47.10469
}
},
{
"type": "MOUTH_LEFT",
"position": {
"x": 618.05316,
"y": 244.30135,
"z": -26.667568
}
},
{
"type": "MOUTH_RIGHT",
"position": {
"x": 681.7894,
"y": 249.34326,
"z": -28.266953
}
},
{
"type": "MOUTH_CENTER",
"position": {
"x": 650.2115,
"y": 240.78644,
"z": -42.925617
}
},
{
"type": "NOSE_BOTTOM_RIGHT",
"position": {
"x": 676.8117,
"y": 208.21477,
"z": -26.859186
}
},
{
"type": "NOSE_BOTTOM_LEFT",
"position": {
"x": 631.6001,
"y": 203.6931,
"z": -25.537132
}
},
{
"type": "NOSE_BOTTOM_CENTER",
"position": {
"x": 652.55634,
"y": 208.35648,
"z": -40.666237
}
},
{
"type": "LEFT_EYE_TOP_BOUNDARY",
"position": {
"x": 618.0163,
"y": 146.5286,
"z": -4.2403574
}
},
{
"type": "LEFT_EYE_RIGHT_CORNER",
"position": {
"x": 631.9408,
"y": 155.24184,
"z": -0.5234165
}
},
{
"type": "LEFT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 616.27734,
"y": 157.99261,
"z": -2.4720013
}
},
{
"type": "LEFT_EYE_LEFT_CORNER",
"position": {
"x": 599.8417,
"y": 154.28525,
"z": 7.8246307
}
},
{
"type": "LEFT_EYE_PUPIL",
"position": {
"x": 615.9924,
"y": 153.07698,
"z": -2.2393916
}
},
{
"type": "RIGHT_EYE_TOP_BOUNDARY",
"position": {
"x": 703.0144,
"y": 155.6803,
"z": -6.9759674
}
},
{
"type": "RIGHT_EYE_RIGHT_CORNER",
"position": {
"x": 720.0284,
"y": 167.90976,
"z": 3.9799964
}
},
{
"type": "RIGHT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 702.6556,
"y": 168.52942,
"z": -5.367339
}
},
{
"type": "RIGHT_EYE_LEFT_CORNER",
"position": {
"x": 684.94434,
"y": 162.21082,
"z": -2.4660199
}
},
{
"type": "RIGHT_EYE_PUPIL",
"position": {
"x": 703.1747,
"y": 162.471,
"z": -5.2258663
}
},
{
"type": "LEFT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 617.15466,
"y": 121.38124,
"z": -1.3903539
}
},
{
"type": "RIGHT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 709.33636,
"y": 131.2587,
"z": -4.329658
}
},
{
"type": "LEFT_EAR_TRAGION",
"position": {
"x": 558.717,
"y": 217.28528,
"z": 91.25954
}
},
{
"type": "RIGHT_EAR_TRAGION",
"position": {
"x": 752.29456,
"y": 238.41132,
"z": 85.33344
}
},
{
"type": "FOREHEAD_GLABELLA",
"position": {
"x": 662.16455,
"y": 132.33444,
"z": -14.893293
}
},
{
"type": "CHIN_GNATHION",
"position": {
"x": 643.70544,
"y": 296.41132,
"z": -46.404755
}
},
{
"type": "CHIN_LEFT_GONION",
"position": {
"x": 561.90204,
"y": 261.00873,
"z": 42.328934
}
},
{
"type": "CHIN_RIGHT_GONION",
"position": {
"x": 736.34705,
"y": 279.67368,
"z": 36.731735
}
}
],
"rollAngle": 6.640137,
"panAngle": -1.8977984,
"tiltAngle": 16.088858,
"detectionConfidence": 0.9996542,
"landmarkingConfidence": 0.8188656,
"joyLikelihood": "VERY_UNLIKELY",
"sorrowLikelihood": "VERY_UNLIKELY",
"angerLikelihood": "VERY_UNLIKELY",
"surpriseLikelihood": "VERY_UNLIKELY",
"underExposedLikelihood": "VERY_UNLIKELY",
"blurredLikelihood": "VERY_UNLIKELY",
"headwearLikelihood": "VERY_UNLIKELY"
}
]
}
]
}
色々帰ってきました。
ここに詳細が書いてありました。
結果の下側にVERY_UNLIKERYの値が続いていますが、感情を判定した結果みたいですね。
joyLikelihood・・・喜びの可能性
sorrowLikelihood・・・悲しみの可能性
angerLikelihood・・・怒りの可能性
surpriseLikelihood・・・驚きの可能性
underExposedLikelihood・・・露出不足の可能性
blurredLikelihood・・・ぼやけた可能性
headwearLikelihood・・・ヘッドウェア可能性
らしいです。最後のヘッドウェアの可能性ってなんだろうな?
0 件のコメント:
コメントを投稿