Hello!
I already write about the new Kinect One camera, is much better than the Kinect v1. This new features allows us to get access to elements like the heartbeat of a person, photos in HD, etc. The SDK is still progressing and gives us some interesting options such as for example, the ability to detect open or closed hands. Update: Victor reminded me that this already had it in the SDK 1.7 and higher, not as explicit as here.
What I will do is start from the console example of recently (post) and it will change the routine processing recognition of Bodies:
1: static void _bodyFrameReader_FrameArrived(object sender, BodyFrameArrivedEventArgs e)
2: {
3: var frameReference = e.FrameReference;
4: var frame = frameReference.AcquireFrame();
5: if (frame == null) return;
6: using (frame)
7: {
8: frame.GetAndRefreshBodyData(_bodies);
9: foreach (var body in _bodies)
10: {
11: if (!body.IsTracked) continue;
12: if (body.HandRightState == HandState.Unknown) continue;
13: var handRightState = body.HandRightState;
14: if (_lastHandRightState != body.HandRightState)
15: {
16: Console.WriteLine("Right Hand State:{0}", handRightState);
17: _lastHandRightState = body.HandRightState;
18: }
19: }
20: }
21: }
As you can see in the example above, once we have defined that the body is trackeable (line 11), then we will work with the property HandRightState (line 13). It has the values of Open, Close, Unknow, among others.
The video below shows an example of this app running:
And the disclaimer:
“This is preliminary software and/or hardware and APIs are preliminary and subject to change“
Greetings @ La Finca
El Bruno
Leave a reply to [#KINECTONE] Kinect for Windows V2 posts #KinectSdk | El Bruno Cancel reply