Skip to content

Instantly share code, notes, and snippets.

@indranil32
Created April 7, 2021 18:09
Show Gist options
  • Save indranil32/ccae90c0d88180c789a9045d9f4a5a7f to your computer and use it in GitHub Desktop.
Save indranil32/ccae90c0d88180c789a9045d9f4a5a7f to your computer and use it in GitHub Desktop.
Sample logs from hand pose detection
LOG imageAsTensors: {"kept":false,"isDisposedInternal":false,"shape":[200,152,3],"dtype":"int32","size":91200,"strides":[456,3],"dataId":{"id":80188},"id":53720,"rankType":"3"}
LOG Calling estimateHands...
LOG prediction: [{"handInViewConfidence":0.9581741690635681,"boundingBox":{"topLeft":[-16.90067355055654,-16.494075022048044],"bottomRight":[137.18174674736986,137.5883452758784]},"landmarks":[[33.729566155019455,105.94868737432625,-0.0004012957215309143],[33.561984441982524,82.89056246291857,-10.734733581542969],[44.06515968257281,63.312674810617395,-13.661907196044922],[51.035811058314415,44.22963840695522,-16.28701400756836],[51.637919403054056,23.193821115296643,-20.039825439453125],[69.87716631754131,77.70289484327728,0.7628560066223145],[85.87868398406854,76.67250162202878,-10.202250480651855],[72.91400702619906,79.90179010203502,-19.073787689208984],[64.2947124148271,82.80427208175323,-19.66538429260254],[72.69562350659704,91.3940419591296,4.0848259925842285],[86.7190887548308,91.63818968138445,-10.530457496643066],[69.29613188722806,93.16791325514562,-18.147817611694336],[59.94176114345477,94.46147917208816,-15.569035530090332],[72.40377528474961,104.02243905808731,5.107331275939941],[83.75159308530779,104.42001536196679,-8.9259033203125],[65.75455986489416,103.36709981897543,-15.595075607299805],[56.17710633446236,104.41941520802162,-13.204456329345703],[70.48556603164111,116.57710614434296,5.695003509521484],[80.52550226273792,115.16540470687366,-2.03688645362854],[68.58287571042146,112.74472392940643,-3.4875059127807617],[59.461378741877965,113.85134762315744,1.2277902364730835]],"annotations":{"thumb":[[33.561984441982524,82.89056246291857,-10.734733581542969],[44.06515968257281,63.312674810617395,-13.661907196044922],[51.035811058314415,44.22963840695522,-16.28701400756836],[51.637919403054056,23.193821115296643,-20.039825439453125]],"indexFinger":[[69.87716631754131,77.70289484327728,0.7628560066223145],[85.87868398406854,76.67250162202878,-10.202250480651855],[72.91400702619906,79.90179010203502,-19.073787689208984],[64.2947124148271,82.80427208175323,-19.66538429260254]],"middleFinger":[[72.69562350659704,91.3940419591296,4.0848259925842285],[86.7190887548308,91.63818968138445,-10.530457496643066],[69.29613188722806,93.16791325514562,-18.147817611694336],[59.94176114345477,94.46147917208816,-15.569035530090332]],"ringFinger":[[72.40377528474961,104.02243905808731,5.107331275939941],[83.75159308530779,104.42001536196679,-8.9259033203125],[65.75455986489416,103.36709981897543,-15.595075607299805],[56.17710633446236,104.41941520802162,-13.204456329345703]],"pinky":[[70.48556603164111,116.57710614434296,5.695003509521484],[80.52550226273792,115.16540470687366,-2.03688645362854],[68.58287571042146,112.74472392940643,-3.4875059127807617],[59.461378741877965,113.85134762315744,1.2277902364730835]],"palmBase":[[33.729566155019455,105.94868737432625,-0.0004012957215309143]]}}]
LOG Gesture: {"gestures": [{"confidence": 9.25, "name": "thumbs_up"}], "poseData": [["Thumb", "No Curl", "Diagonal Up Right"], ["Index", "Full Curl", "Horizontal Right"], ["Middle", "Full Curl", "Horizontal Right"], ["Ring", "Full Curl", "Horizontal Right"], ["Pinky", "Full Curl", "Horizontal Right"]]}
LOG emoji name: thumbs_up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment