Packagecom.tastenkunst.airkinectv2
Classpublic class KV2Body
InheritanceKV2Body Inheritance Object

The Kinect is capable of tracking up to 6 bodies in parallel (BODY_COUNT).

Every KV2Body object consists of 25 joints, hand states and a color.

It will also return whether a certain trained gesture was tracked (GBD/GBA files).

(VisualGestureBuilder libraries are not activated in this build, since further testing is needed.)



Public Properties
 PropertyDefined By
  color : uint
This is the color of a certain body index. The default values are: 0xFF00FF00 0xFFFF0000 0xFFFF4000 0x40FFFF00 0xFF40FF00 0xFF808000
KV2Body
  gestureConfidence : Number
If a GestureType_Discrete was tracked this values will tell you, with which confidence it was tracked.
KV2Body
  gestureProgress : Number
If a GestureType_Continuous was tracked this value will be between 0.0 and 1.0.
KV2Body
  gestureTracked : Boolean
If a gesture database was added (GBD/GBA file), this values will state, whether a wanted gesture was tracked or not.
KV2Body
  handLeftConfidence : int
This is the tracking confidence of the state of the left hand.
KV2Body
  handLeftState : int
This is the tracked state of the left hand.
KV2Body
  handRightConfidence : int
This is the tracking confidence of the state of the right hand.
KV2Body
  handRightState : int
This is the tracked state of the right hand.
KV2Body
  joints : Vector.<KV2Joint>
All 25 body joints.
KV2Body
  tracked : Boolean
Every body, that gets recognized by the sensor will have tracked = true.
KV2Body
Public Constants
 ConstantDefined By
  BODY_COUNT : int = 6
[static] The Kinect sensor will track up to 6 bodies in parallel.
KV2Body
  HandState_Closed : int = 3
[static] The sensor could track the hand state (left or right) and found the hand is "closed".
KV2Body
  HandState_Lasso : int = 4
[static] The sensor could track the hand state (left or right) and found the hand is making a "lasso" gesture.
KV2Body
  HandState_NotTracked : int = 1
[static] The sensor could not track the hand (left or right), thus the its tracking state is "not tracked".
KV2Body
  HandState_Open : int = 2
[static] The sensor could track the hand state (left or right) and found the hand is "open".
KV2Body
  HandState_Unknown : int = 0
[static] The sensor could not track state of the hand (left or right), thus the its tracking state is "unknown".
KV2Body
  TrackingConfidence_High : int = 1
[static] The sensor could track the hand (left or right), and is pretty sure about the tracking results.
KV2Body
  TrackingConfidence_Low : int = 0
[static] The sensor could track the hand (left or right), but can't say with high confidence, that the tracking returned a certain result.
KV2Body
Property Detail
colorproperty
public var color:uint

This is the color of a certain body index.

The default values are:

gestureConfidenceproperty 
public var gestureConfidence:Number

If a GestureType_Discrete was tracked this values will tell you, with which confidence it was tracked.

gestureProgressproperty 
public var gestureProgress:Number

If a GestureType_Continuous was tracked this value will be between 0.0 and 1.0. This will always return a value, even if it's not wanted. So take GestureType_Discrete gestures as starting points for GestureType_Continuous gestures.

gestureTrackedproperty 
public var gestureTracked:Boolean

If a gesture database was added (GBD/GBA file), this values will state, whether a wanted gesture was tracked or not.

handLeftConfidenceproperty 
public var handLeftConfidence:int

This is the tracking confidence of the state of the left hand.

handLeftStateproperty 
public var handLeftState:int

This is the tracked state of the left hand.

handRightConfidenceproperty 
public var handRightConfidence:int

This is the tracking confidence of the state of the right hand.

handRightStateproperty 
public var handRightState:int

This is the tracked state of the right hand.

jointsproperty 
public var joints:Vector.<KV2Joint>

All 25 body joints.

See also

trackedproperty 
public var tracked:Boolean

Every body, that gets recognized by the sensor will have tracked = true. Inactive bodies (out of the 6 possible tracked ones) will have tracked = false.

Constant Detail
BODY_COUNTConstant
public static const BODY_COUNT:int = 6

The Kinect sensor will track up to 6 bodies in parallel.

HandState_ClosedConstant 
public static const HandState_Closed:int = 3

The sensor could track the hand state (left or right) and found the hand is "closed".

HandState_LassoConstant 
public static const HandState_Lasso:int = 4

The sensor could track the hand state (left or right) and found the hand is making a "lasso" gesture.

HandState_NotTrackedConstant 
public static const HandState_NotTracked:int = 1

The sensor could not track the hand (left or right), thus the its tracking state is "not tracked".

HandState_OpenConstant 
public static const HandState_Open:int = 2

The sensor could track the hand state (left or right) and found the hand is "open".

HandState_UnknownConstant 
public static const HandState_Unknown:int = 0

The sensor could not track state of the hand (left or right), thus the its tracking state is "unknown".

TrackingConfidence_HighConstant 
public static const TrackingConfidence_High:int = 1

The sensor could track the hand (left or right), and is pretty sure about the tracking results.

TrackingConfidence_LowConstant 
public static const TrackingConfidence_Low:int = 0

The sensor could track the hand (left or right), but can't say with high confidence, that the tracking returned a certain result.