Skip to content

Instantly share code, notes, and snippets.

@mpilar
Created November 14, 2016 16:13
Show Gist options
  • Save mpilar/3f6fa230e511fd7d8813064a5baf5b13 to your computer and use it in GitHub Desktop.
Save mpilar/3f6fa230e511fd7d8813064a5baf5b13 to your computer and use it in GitHub Desktop.
Google Vision
{
"faceAnnotations": [
{
"boundingPoly": {
"vertices": [
{
"x": 243
},
{
"x": 650
},
{
"x": 650,
"y": 446
},
{
"x": 243,
"y": 446
}
]
},
"fdBoundingPoly": {
"vertices": [
{
"x": 267,
"y": 76
},
{
"x": 569,
"y": 76
},
{
"x": 569,
"y": 378
},
{
"x": 267,
"y": 378
}
]
},
"landmarks": [
{
"type": "LEFT_EYE",
"position": {
"x": 349.13962,
"y": 167.66881,
"z": 0.001356546
}
},
{
"type": "RIGHT_EYE",
"position": {
"x": 444.02032,
"y": 172.03162,
"z": -64.025124
}
},
{
"type": "LEFT_OF_LEFT_EYEBROW",
"position": {
"x": 320.0072,
"y": 138.2346,
"z": 39.093418
}
},
{
"type": "RIGHT_OF_LEFT_EYEBROW",
"position": {
"x": 363.52139,
"y": 133.16492,
"z": -31.137516
}
},
{
"type": "LEFT_OF_RIGHT_EYEBROW",
"position": {
"x": 414.61447,
"y": 135.57321,
"z": -64.507446
}
},
{
"type": "RIGHT_OF_RIGHT_EYEBROW",
"position": {
"x": 495.90866,
"y": 146.58318,
"z": -75.459236
}
},
{
"type": "MIDPOINT_BETWEEN_EYES",
"position": {
"x": 383.29343,
"y": 159.63574,
"z": -53.455746
}
},
{
"type": "NOSE_TIP",
"position": {
"x": 353.82797,
"y": 222.92804,
"z": -95.208885
}
},
{
"type": "UPPER_LIP",
"position": {
"x": 367.33588,
"y": 274.58115,
"z": -77.340309
}
},
{
"type": "LOWER_LIP",
"position": {
"x": 361.73471,
"y": 318.70538,
"z": -76.848122
}
},
{
"type": "MOUTH_LEFT",
"position": {
"x": 339.77185,
"y": 294.84082,
"z": -26.016764
}
},
{
"type": "MOUTH_RIGHT",
"position": {
"x": 418.16827,
"y": 300.38312,
"z": -79.6671
}
},
{
"type": "MOUTH_CENTER",
"position": {
"x": 366.79208,
"y": 294.29559,
"z": -72.924332
}
},
{
"type": "NOSE_BOTTOM_RIGHT",
"position": {
"x": 406.84106,
"y": 242.31357,
"z": -75.235695
}
},
{
"type": "NOSE_BOTTOM_LEFT",
"position": {
"x": 351.05661,
"y": 239.1241,
"z": -38.376251
}
},
{
"type": "NOSE_BOTTOM_CENTER",
"position": {
"x": 370.20416,
"y": 247.28131,
"z": -73.839462
}
},
{
"type": "LEFT_EYE_TOP_BOUNDARY",
"position": {
"x": 341.84158,
"y": 156.43967,
"z": -3.4993458
}
},
{
"type": "LEFT_EYE_RIGHT_CORNER",
"position": {
"x": 366.50565,
"y": 169.20065,
"z": -11.622151
}
},
{
"type": "LEFT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 344.49826,
"y": 175.79442,
"z": -0.40260687
}
},
{
"type": "LEFT_EYE_LEFT_CORNER",
"position": {
"x": 330.07178,
"y": 168.48967,
"z": 25.017994
}
},
{
"type": "LEFT_EYE_PUPIL",
"position": {
"x": 341.74689,
"y": 165.91704,
"z": 0.72982168
}
},
{
"type": "RIGHT_EYE_TOP_BOUNDARY",
"position": {
"x": 446.99478,
"y": 161.37146,
"z": -72.177216
}
},
{
"type": "RIGHT_EYE_RIGHT_CORNER",
"position": {
"x": 476.46005,
"y": 175.77176,
"z": -70.760323
}
},
{
"type": "RIGHT_EYE_BOTTOM_BOUNDARY",
"position": {
"x": 445.1936,
"y": 179.93626,
"z": -68.465157
}
},
{
"type": "RIGHT_EYE_LEFT_CORNER",
"position": {
"x": 427.42734,
"y": 171.48283,
"z": -52.293297
}
},
{
"type": "RIGHT_EYE_PUPIL",
"position": {
"x": 449.63617,
"y": 170.99643,
"z": -69.934555
}
},
{
"type": "LEFT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 339.39621,
"y": 118.98486,
"z": -0.14583667
}
},
{
"type": "RIGHT_EYEBROW_UPPER_MIDPOINT",
"position": {
"x": 453.59735,
"y": 124.38653,
"z": -74.681252
}
},
{
"type": "LEFT_EAR_TRAGION",
"position": {
"x": 350.78247,
"y": 256.48349,
"z": 162.87477
}
},
{
"type": "RIGHT_EAR_TRAGION",
"position": {
"x": 582.32336,
"y": 266.72641,
"z": 6.2075224
}
},
{
"type": "FOREHEAD_GLABELLA",
"position": {
"x": 386.8371,
"y": 131.85764,
"z": -51.462914
}
},
{
"type": "CHIN_GNATHION",
"position": {
"x": 355.51205,
"y": 383.3017,
"z": -73.09259
}
},
{
"type": "CHIN_LEFT_GONION",
"position": {
"x": 322.98874,
"y": 325.44873,
"z": 100.67239
}
},
{
"type": "CHIN_RIGHT_GONION",
"position": {
"x": 538.70923,
"y": 335.18375,
"z": -39.695213
}
}
],
"rollAngle": 9,
"panAngle": -34,
"tiltAngle": 9,
"detectionConfidence": 100,
"landmarkingConfidence": 0.52329105,
"joyLikelihood": "VERY_UNLIKELY",
"sorrowLikelihood": "VERY_UNLIKELY",
"angerLikelihood": "VERY_UNLIKELY",
"surpriseLikelihood": "VERY_UNLIKELY",
"underExposedLikelihood": "VERY_UNLIKELY",
"blurredLikelihood": "VERY_UNLIKELY",
"headwearLikelihood": "VERY_UNLIKELY",
"types": [
{
"type": "joyLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Joy"
},
{
"type": "sorrowLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Sorrow"
},
{
"type": "angerLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Anger"
},
{
"type": "surpriseLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Surprise"
},
{
"type": "underExposedLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Exposed"
},
{
"type": "blurredLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Blurred"
},
{
"type": "headwearLikelihood",
"value": "VERY_UNLIKELY",
"friendlyType": "Headwear"
}
],
"showHeader": false,
"num": 1
}
],
"labelAnnotations": [
{
"mid": "/m/0dzct",
"description": "Face",
"score": 96
},
{
"mid": "/m/01k74n",
"description": "Facial Expression",
"score": 95
},
{
"mid": "/m/01g317",
"description": "Person",
"score": 93
},
{
"mid": "/m/0k0pj",
"description": "Nose",
"score": 91
},
{
"mid": "/m/04yx4",
"description": "Man",
"score": 85
},
{
"mid": "/m/05zppz",
"description": "Male",
"score": 79
},
{
"mid": "/m/04hgtk",
"description": "Head",
"score": 75
},
{
"mid": "/m/02cqfm",
"description": "Close Up",
"score": 74
},
{
"mid": "/m/0283dt1",
"description": "Mouth",
"score": 73
},
{
"mid": "/m/0ds4x",
"description": "Hairstyle",
"score": 71
},
{
"mid": "/m/0ds5b",
"description": "Facial Hair",
"score": 69
},
{
"mid": "/m/013y0j",
"description": "Organ",
"score": 67
},
{
"mid": "/m/01dv4h",
"description": "Portrait",
"score": 60
},
{
"mid": "/m/0b_fd",
"description": "Sense",
"score": 58
},
{
"mid": "/m/02p0tk3",
"description": "Human Body",
"score": 54
},
{
"mid": "/m/014sv8",
"description": "Eye",
"score": 53
}
],
"safeSearchAnnotation": {
"adult": "VERY_UNLIKELY",
"spoof": "UNLIKELY",
"medical": "UNLIKELY",
"violence": "VERY_UNLIKELY"
},
"imagePropertiesAnnotation": {
"dominantColors": {
"colors": [
{
"color": {
"red": 95,
"green": 85,
"blue": 62
},
"score": 0.61705685,
"pixelFraction": 0.53349596,
"percent": 65.07078826955454,
"percentRounded": 65,
"rgb": "95, 85, 62",
"hex": "5F553E"
},
{
"color": {
"red": 74,
"green": 41,
"blue": 23
},
"score": 0.096340887,
"pixelFraction": 0.078626387,
"percent": 10.159481188286104,
"percentRounded": 10,
"rgb": "74, 41, 23",
"hex": "4A2917"
},
{
"color": {
"red": 27,
"green": 17,
"blue": 11
},
"score": 0.018034218,
"pixelFraction": 0.023081254,
"percent": 1.9017709325890955,
"percentRounded": 2,
"rgb": "27, 17, 11",
"hex": "1B110B"
},
{
"color": {
"red": 225,
"green": 182,
"blue": 170
},
"score": 0.013721783,
"pixelFraction": 0.034621879,
"percent": 1.4470096819665368,
"percentRounded": 1,
"rgb": "225, 182, 170",
"hex": "E1B6AA"
},
{
"color": {
"red": 116,
"green": 105,
"blue": 78
},
"score": 0.12777127,
"pixelFraction": 0.11287296,
"percent": 13.473924253660075,
"percentRounded": 13,
"rgb": "116, 105, 78",
"hex": "74694E"
},
{
"color": {
"red": 68,
"green": 52,
"blue": 30
},
"score": 0.033444915,
"pixelFraction": 0.024113342,
"percent": 3.5268824625449806,
"percentRounded": 4,
"rgb": "68, 52, 30",
"hex": "44341E"
},
{
"color": {
"red": 106,
"green": 69,
"blue": 50
},
"score": 0.021855367,
"pixelFraction": 0.044004504,
"percent": 2.3047243679580087,
"percentRounded": 2,
"rgb": "106, 69, 50",
"hex": "6A4532"
},
{
"color": {
"red": 96,
"green": 99,
"blue": 52
},
"score": 0.00018655906,
"pixelFraction": 0.000093826231,
"percent": 0.019673300917131254,
"percentRounded": 0,
"rgb": "96, 99, 52",
"hex": "606334"
},
{
"color": {
"red": 42,
"green": 26,
"blue": 9
},
"score": 0.010024465,
"pixelFraction": 0.0074122725,
"percent": 1.0571146556926807,
"percentRounded": 1,
"rgb": "42, 26, 9",
"hex": "2A1A09"
},
{
"color": {
"red": 49,
"green": 21,
"blue": 5
},
"score": 0.0098491861,
"pixelFraction": 0.0061925314,
"percent": 1.038630886830832,
"percentRounded": 1,
"rgb": "49, 21, 5",
"hex": "311505"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment