コード例 #1
0
 public Pipeline() {
     LeftHand = new Hand(Side.Left);
     RightHand = new Hand(Side.Right);
     Face = new Face();
     _gestures = new GestureSensor();
     _poses = new PoseSensor();
 }
コード例 #2
0
        private void TrackHandAndFingers(Hand hand, PXCMGesture.GeoNode.Label bodyLabel) {
            var geoNode = QueryGeoNode(bodyLabel);
            TrackPosition(hand, geoNode);
            TrackOpeness(hand, geoNode);

            TrackFingers(hand.Thumb, bodyLabel | PXCMGesture.GeoNode.Label.LABEL_FINGER_THUMB);
            TrackFingers(hand.Index, bodyLabel | PXCMGesture.GeoNode.Label.LABEL_FINGER_INDEX);
            TrackFingers(hand.Middle, bodyLabel | PXCMGesture.GeoNode.Label.LABEL_FINGER_MIDDLE);
            TrackFingers(hand.Ring, bodyLabel | PXCMGesture.GeoNode.Label.LABEL_FINGER_RING);
            TrackFingers(hand.Pinky, bodyLabel | PXCMGesture.GeoNode.Label.LABEL_FINGER_PINKY);
        }