当前位置:   article > 正文

【Kinect】Kinect骨骼分析_kinect 骨骼

kinect 骨骼

 

  1. Kinect骨骼分析:
  2. 人物的数据
  3. public struct BodyData
  4. {
  5. public Int64 liTrackingID;//人物是否被追踪
  6. public Vector3 position;//人物的位置
  7.     public Quaternion orientation;
  8.     public JointData[] joint;//骨骼节点的数据
  9.     // KM calculated parameters
  10.     public Quaternion normalRotation;
  11.     public Quaternion mirroredRotation;
  12.        
  13.     public Vector3 hipsDirection;
  14.     public Vector3 shouldersDirection;
  15.     public float bodyTurnAngle;
  16.     //public float bodyFullAngle;
  17.     public bool isTurnedAround;
  18.     public float turnAroundFactor;
  19.     public Quaternion leftHandOrientation;
  20.     public Quaternion rightHandOrientation;
  21.     public Quaternion headOrientation;
  22. //      public Vector3 leftArmDirection;
  23. //      public Vector3 leftThumbForward;
  24. //      public Vector3 leftThumbDirection;
  25. //      //public float leftThumbAngle;
  26. //
  27. //      public Vector3 rightArmDirection;
  28. //      public Vector3 rightThumbForward;
  29. //      public Vector3 rightThumbDirection;
  30. //      //public float rightThumbAngle;
  31.     //public Vector3 leftLegDirection;
  32.     //public Vector3 leftFootDirection;
  33.     //public Vector3 rightLegDirection;
  34.     //public Vector3 rightFootDirection;
  35.     public HandState leftHandState;//左手状态
  36.     public TrackingConfidence leftHandConfidence;
  37.     public HandState rightHandState;//右手状态
  38.     public TrackingConfidence rightHandConfidence;
  39.        
  40. public uint dwClippedEdges;
  41. public short bIsTracked;
  42. public short bIsRestricted;
  43. }
  44. //骨骼点信息
  45. public struct JointData
  46. {
  47.         public TrackingState trackingState;
  48.         public Vector3 kinectPos;
  49.         public Vector3 position;
  50.     public Quaternion orientation;  // deprecated
  51.     public Vector3 posPrev;
  52.     public Vector3 posRel;
  53.     public Vector3 posDrv;
  54.     // KM calculated parameters
  55.     public Vector3 direction;
  56.     public Quaternion normalRotation;
  57.     public Quaternion mirroredRotation;
  58.        
  59.     // Constraint parameters
  60.     public float lastAngle;
  61. }
  62. //姿势检测的结构
  63. public struct GestureData
  64. {
  65.     public long userId;//要检测的用户ID
  66.     public Gestures gesture;//要检测的姿势类型
  67.     public int state;//姿势检测的状态,姿势是否正在检测
  68.     public float timestamp;
  69.     public int joint;
  70.     public Vector3 jointPos;
  71.     public Vector3 screenPos;
  72.     public float tagFloat;
  73.     public Vector3 tagVector;
  74.     public Vector3 tagVector2;
  75.     public float progress;
  76.     public bool complete;
  77.     public bool cancelled;
  78.     public List<Gestures> checkForGestures;
  79.     public float startTrackingAtTime;
  80. }

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号