Skip to content

Zillode/OSCeleton-KinectSDK2

Repository files navigation

OSCeleton-KinectSDK2

What is this?

As the title says, it's just a small program that takes Kinect skeleton data from the KinectSDK (v2) framework and spits out the coordinates of the skeleton's joints via OSC messages. These can can then be used on your language / framework of choice.

This version of OSCeleton is similar to OSCeleton-OpenNI and OSCeleton-KinectSDK.

How do I use it?

Download and install the ClickOnce installer

How do I build it?

Install Visual Studio 2013

Compile and run the OSCeleton-KinectSDK2 solution

If you run the executable, it will send the OSC messages in the Midas format to localhost on port 7110. To learn about the OSC message format, continue reading below.

OSC Message format

Joint message - message with the coordinates of each skeleton joint:

The messages will have the following format:

Address pattern: "/osceleton2/joint"
Type tag: "siiffffd"
s: Joint name, check out the full list of joints below
i: The ID of the sensor
i: The ID of the user
f: X coordinate of joint in real world coordinates (centimetres)
f: Y coordinate of joint in real world coordinates (centimetres)
f: Z coordinate of joint in real world coordinates (centimetres)
f: confidence value in interval [0.0, 1.0]
d: time stamp in milliseconds since Unix epoch

Note: the Y coordinate is inverted compared to the default KinectSDK to be compatible with OpenNI.

Hand message - message with the coordinates of each hand:

The messages will have the following format:

Address pattern: "/osceleton2/hand"
Type tag: "iiiffffifd"
i: The ID of the sensor
i: The ID of the user
i: The ID of the hand (1 == Left, 2 == Right)
f: X coordinate of joint in real world coordinates (centimetres)
f: Y coordinate of joint in real world coordinates (centimetres)
f: Z coordinate of joint in real world coordinates (centimetres)
f: confidence value in interval [0.0, 1.0]
i: state of the hand (1 == Open, 2 == Closed, 3 == Lasso, 4 == Unknown, 5 == NotTracked)
f: confidence value of the hand state in interval [0.0, 1.0]
d: time stamp in milliseconds since Unix epoch

Note: the Y coordinate is inverted compared to the default KinectSDK to be compatible with OpenNI.

FaceRotation message - message with the rotation coordinates of a face event:

The messages will have the following format:

Address pattern: "/osceleton2/face_rotation"
Type tag: "iifffd"
i: The ID of the sensor
i: The ID of the user
f: pitch of the head [-90, 90]
f: yaw of the head [-90, 90]
f: roll of the head [-90, 90]
d: time stamp in milliseconds since Unix epoch

Further information about the FaceRotation properties can be found here

FaceProperty message - message with the coordinates of a face event:

The messages will have the following format:

Address pattern: "/osceleton2/face_property"
Type tag: "iiffffffffd"
i: The ID of the sensor
i: The ID of the user
f: happy [0, 1]
f: engaged [0, 1]
f: wearing glasses [0, 1]
f: left eye closed [0, 1]
f: right eye closed [0, 1]
f: mouth open [0, 1]
f: mouth moved [0, 1]
f: looking away [0, 1]
d: time stamp in milliseconds since Unix epoch

Further information about the Face properties can be found here

Full list of joints

  • head -> Head
  • neck -> SpineShoulder
  • torso -> SpineMid
  • waist -> SpineBase
  • r_collar #not supported by KinectSDK (yet)
  • r_shoulder -> ShoulderRight
  • r_elbow -> ElbowRight
  • r_wrist -> WristRight
  • r_hand -> HandRight
  • r_finger #not supported by KinectSDK (yet)
  • l_collar #not supported by KinectSDK (yet)
  • l_shoulder -> ShoulderLeft
  • l_elbow -> ElbowLeft
  • l_wrist -> WristLeft
  • l_hand -> HandLeft
  • l_finger #not supported by KinectSDK (yet)
  • r_hip -> HipRight
  • r_knee -> KneeRight
  • r_ankle -> AnkleRight
  • r_foot -> FootRight
  • l_hip -> HipLeft
  • l_knee -> KneeLeft
  • l_ankle -> AnkleLeft
  • l_foot -> FootLeft

Other

For feature request, reporting bugs, or general OSCeleton

discussion, come join the fun in a related google group!

OSCeleton-OpenNI ?

To use the OpenNI & NITE framework in combination with OSC messages, download OSCeleton-OpenNI

OSCeleton-KinectSDK ?

To use the Kinect SDK v1.8 in combination with OSC messages, download OSCeleton-KinectSDK

Have fun!

About

OSCeleton application for the Kinect SDK 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages