Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drakeguan/15077b9ba58ca869d48292e2581530d4 to your computer and use it in GitHub Desktop.
Save drakeguan/15077b9ba58ca869d48292e2581530d4 to your computer and use it in GitHub Desktop.
Sentiment Analysis by Cloud Vision API in Google Cloud Next '17
{
"faceAnnotations": [
{
"rollAngle": 3.2389677,
"panAngle": -9.39832,
"tiltAngle": 1.9103807,
"detectionConfidence": 0.94434965,
"landmarkingConfidence": 0.7591174,
"joyLikelihood": "UNLIKELY",
"sorrowLikelihood": "VERY_UNLIKELY",
"angerLikelihood": "VERY_UNLIKELY",
"surpriseLikelihood": "VERY_UNLIKELY",
"underExposedLikelihood": "VERY_UNLIKELY",
"blurredLikelihood": "VERY_UNLIKELY",
"headwearLikelihood": "VERY_UNLIKELY"
},
{
"boundingPoly": {
"vertices": [
{
"x": 678,
"y": 406
},
{
"x": 1111,
"y": 406
},
{
"x": 1111,
"y": 911
},
{
"x": 678,
"y": 911
}
]
},
"fdBoundingPoly": {
"vertices": [
{
"x": 716,
"y": 517
},
{
"x": 1052,
"y": 517
},
{
"x": 1052,
"y": 853
},
{
"x": 716,
"y": 853
}
]
},
"landmarks": [
{
"type": "LEFT_EYE",
"position": {
"x": 816.09576,
"y": 622.44025,
"z": 0.0008924921
}
},
{
"type": "RIGHT_EYE",
"position": {
"x": 953.8337,
"y": 631.70245,
"z": -18.982841
}
},
{
"type": "LEFT_OF_LEFT_EYEBROW",
"position": {
"x": 778.3815,
"y": 592.42896,
"z": 20.247349
}
},
{
"type": "RIGHT_OF_LEFT_EYEBROW",
"position": {
"x": 853.0059,
"y": 594.635,
"z": -29.328049
}
},
{
"type": "LEFT_OF_RIGHT_EYEBROW",
"position": {
"x": 914.4283,
"y": 602.3963,
"z": -37.991547
}
},
{
"type": "RIGHT_OF_RIGHT_EYEBROW",
"position": {
"x": 1002.06665,
"y": 611.0826,
"z": -9.713939
}
},
{
"type": "MIDPOINT_BETWEEN_EYES",
"position": {
"x": 881.3307,
"y": 623.9696,
"z": -36.758186
}
},
{
"type": "NOSE_TIP",
"position": {
"x": 871.2675,
"y": 694.2499,
"z": -77.061554
}
},
{
"type": "UPPER_LIP",
"position": {
"x": 863.28723,
"y": 743.6126,
"z": -49.46089
}
},
{
"type": "LOWER_LIP",
"position": {
"x": 866.2405,
"y": 791.8904,
"z": -41.451084
}
},
{
"type": "MOUTH_LEFT",
"position": {
"x": 819.00195,
"y": 758.29,
"z": -7.1879425
}
},
{
"type": "MOUTH_RIGHT",
"position": {
"x": 928.0631,
"y": 774.6817,
"z": -21.078289
}
},
{
"type": "MOUTH_CENTER",
"position": {
"x": 865.87286,
"y": 765.8502,
"z": -40.479668
}
},
{
"type": "NOSE_BOTTOM_RIGHT",
"position": {
"x": 912.91003,
"y": 713.0526,
"z": -32.624733
}
},
{
"type": "NOSE_BOTTOM_LEFT",
"position": {
"x": 833.49506,
"y": 699.5381,
"z": -21.362055
}
},
{
"type": "NOSE_BOTTOM_CENTER",
"position": {
"x": 869.153,
"y": 717.39404,
"z": -48.723343
}
},
{
"type": "LEFT_EYE_TOP_BOUNDARY",
"position": {
"x": 819.8929,
"y": 613.63,
"z": -9.103796
}
},
{
"type": "LEFT_EYE_RIGHT_CORNER",
"position": {
"x": 844.60004,
"y": 628.14124,
"z": -3.7924306
}
},
{
"type": "LEFT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 814.955,
"y": 629.7759,
"z": -1.8437359
}
},
{
"type": "LEFT_EYE_LEFT_CORNER",
"position": {
"x": 794.9044,
"y": 622.126,
"z": 15.202515
}
},
{
"type": "LEFT_EYE_PUPIL",
"position": {
"x": 817.8107,
"y": 622.5469,
"z": -4.0117955
}
},
{
"type": "RIGHT_EYE_TOP_BOUNDARY",
"position": {
"x": 948.08704,
"y": 625.3174,
"z": -27.223907
}
},
{
"type": "RIGHT_EYE_RIGHT_CORNER",
"position": {
"x": 979.0254,
"y": 637.7281,
"z": -9.970474
}
},
{
"type": "RIGHT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 951.9544,
"y": 640.43634,
"z": -20.272367
}
},
{
"type": "RIGHT_EYE_LEFT_CORNER",
"position": {
"x": 924.65656,
"y": 633.8169,
"z": -14.79251
}
},
{
"type": "RIGHT_EYE_PUPIL",
"position": {
"x": 949.1803,
"y": 634.52356,
"z": -22.788836
}
},
{
"type": "LEFT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 817.2987,
"y": 575.58374,
"z": -13.5414915
}
},
{
"type": "RIGHT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 956.223,
"y": 588.36206,
"z": -33.192776
}
},
{
"type": "LEFT_EAR_TRAGION",
"position": {
"x": 754.3338,
"y": 687.40564,
"z": 167.33888
}
},
{
"type": "RIGHT_EAR_TRAGION",
"position": {
"x": 1045.1947,
"y": 713.7693,
"z": 125.822784
}
},
{
"type": "FOREHEAD_GLABELLA",
"position": {
"x": 883.36475,
"y": 595.0361,
"z": -38.704193
}
},
{
"type": "CHIN_GNATHION",
"position": {
"x": 861.8879,
"y": 847.8578,
"z": -26.388227
}
},
{
"type": "CHIN_LEFT_GONION",
"position": {
"x": 753.57227,
"y": 768.2189,
"z": 109.749
}
},
{
"type": "CHIN_RIGHT_GONION",
"position": {
"x": 1016.1264,
"y": 792.4159,
"z": 72.49437
}
}
],
"rollAngle": 5.574982,
"panAngle": -8.037625,
"tiltAngle": 2.3314216,
"detectionConfidence": 0.9996695,
"landmarkingConfidence": 0.7479942,
"joyLikelihood": "VERY_UNLIKELY",
"sorrowLikelihood": "VERY_UNLIKELY",
"angerLikelihood": "UNLIKELY",
"surpriseLikelihood": "VERY_UNLIKELY",
"underExposedLikelihood": "VERY_UNLIKELY",
"blurredLikelihood": "VERY_UNLIKELY",
"headwearLikelihood": "VERY_UNLIKELY"
}
]
}
@drakeguan
Copy link
Author

Refer to http://social-gen.com/vision_api/?f=20170309_183158&s=4&e=573 if you are interested in the analysed photo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment