In the last post of the series with basic stuff we can do with KinectSdk V2 and the new KinectOne today I’ll write about how we can “draw a body” or what we use to call a skeleton.
As in the previous examples, we must create a Reader of the type BODYREADER, initialize it and subscribe to the FrameArrived event. In it then
- a couple of null validations
- We get the frame of the Body feed
- We update the array of bodies (remember that with the KinectOne, we can follow up to six bodies simultaneously!)
- for every body access to its collection of Joints and paint them
Take a look at the lines 23 to 28, where the SDK already gives us an object to helps us coordinate the spatial position of the joints for the depth of the same information. In KinectSDK previous versions this routine has been improved and with the V2 I think that they have left her in a way my simple and easy to use.
Another point to keep in mind is that now with the ability to detect the State of the hand, now we can change the classic SKELETON to make it a little more fun. I leave a video example
“This is preliminary software and/or hardware and APIs are preliminary and subject to change“
Greetings @ Cordoba, land of bbq, friends and guitar