Created
September 12, 2020 19:06
-
-
Save zamfi/b99f040a1890f69d9e74e377b0849adb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var poses = [ | |
{ | |
"nose": { | |
"x": 333.79916958873963, | |
"y": 281.8711811385424, | |
"confidence": 0.9843198657035828 | |
}, | |
"leftEye": { | |
"x": 385.9717814127604, | |
"y": 245.32875046163042, | |
"confidence": 0.9730790853500366 | |
}, | |
"rightEye": { | |
"x": 271.38118037471065, | |
"y": 244.06787061784235, | |
"confidence": 0.9968607425689697 | |
}, | |
"leftEar": { | |
"x": 439.76519787288316, | |
"y": 283.227816576149, | |
"confidence": 0.14638498425483704 | |
}, | |
"rightEar": { | |
"x": 193.51330495020102, | |
"y": 299.6811276337324, | |
"confidence": 0.21322432160377502 | |
}, | |
"leftShoulder": { | |
"x": 510.1519025836074, | |
"y": 492.55351819490124, | |
"confidence": 0.009413953870534897 | |
}, | |
"rightShoulder": { | |
"x": 198.5952633863304, | |
"y": 497.20116449843135, | |
"confidence": 0.00247268402017653 | |
} | |
}, | |
{ | |
"nose": { | |
"x": 119.18206796776248, | |
"y": 110.07581387346946, | |
"confidence": 0.9659508466720581 | |
}, | |
"leftEye": { | |
"x": 162.2184616594519, | |
"y": 87.95171369586075, | |
"confidence": 0.9950404763221741 | |
}, | |
"rightEye": { | |
"x": 69.24913491886726, | |
"y": 91.39261048672026, | |
"confidence": 0.9880455732345581 | |
}, | |
"leftEar": { | |
"x": 252.56489714683843, | |
"y": 126.77783155534235, | |
"confidence": 0.05266452580690384 | |
}, | |
"rightEar": { | |
"x": -8.079292639421904, | |
"y": 133.82954201503105, | |
"confidence": 0.4747028350830078 | |
}, | |
"leftShoulder": { | |
"x": 352.6854528832389, | |
"y": 346.9274128993817, | |
"confidence": 0.2712278962135315 | |
}, | |
"rightShoulder": { | |
"x": -2.5730562860738, | |
"y": 356.2066507618329, | |
"confidence": 0.3571750223636627 | |
} | |
} | |
] | |
for (var i = 0; i < poses.length; i += 1) { | |
var pose = poses[i]; | |
var nose = pose.nose; | |
fill(nose.confidence * 255); | |
ellipse(nose.x, nose.y, 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment