Package | com.tastenkunst.airkinectv2 |
Class | public class KV2Body |
Inheritance | KV2Body ![]() |
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.)
Property | Defined 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 |
Constant | Defined 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 |
color | property |
public var color:uint
This is the color of a certain body index.
The default values are:
gestureConfidence | property |
public var gestureConfidence:Number
If a GestureType_Discrete was tracked this values will tell you, with which confidence it was tracked.
gestureProgress | property |
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.
gestureTracked | property |
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.
handLeftConfidence | property |
public var handLeftConfidence:int
This is the tracking confidence of the state of the left hand.
handLeftState | property |
public var handLeftState:int
This is the tracked state of the left hand.
handRightConfidence | property |
public var handRightConfidence:int
This is the tracking confidence of the state of the right hand.
handRightState | property |
public var handRightState:int
This is the tracked state of the right hand.
joints | property |
tracked | property |
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.
BODY_COUNT | Constant |
public static const BODY_COUNT:int = 6
The Kinect sensor will track up to 6 bodies in parallel.
HandState_Closed | Constant |
public static const HandState_Closed:int = 3
The sensor could track the hand state (left or right) and found the hand is "closed".
HandState_Lasso | Constant |
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_NotTracked | Constant |
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_Open | Constant |
public static const HandState_Open:int = 2
The sensor could track the hand state (left or right) and found the hand is "open".
HandState_Unknown | Constant |
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_High | Constant |
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_Low | Constant |
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.