private void StartTracking() { this.kinect = new Kinect(); Helper.ShowKinectPreview(this.kinect, this); Helper.DisplayKinectStatus(this.kinect, this.status); this.tracker_lefthand.StartTracking( GenericActionFactory.Create<MoveableBodyPart>(this.kinect, (s) => s.LeftHand)); this.tracker_handspring.StartTracking( GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand)); this.tracker_righthand.StartTracking( GenericActionFactory.Create<MoveableBodyPart>(this.kinect, (s) => s.RightHand)); this.tracker_sizeablesquare.StartTracking( GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand)); this.tracker_distance.StartTracking( GenericActionFactory.Create<SpringBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand)); this.tracker_rollingdice.StartTracking( GenericActionFactory.Create<ReformBodyParts>(this.kinect, (s) => s.LeftHand, (s) => s.RightHand)); this.Dip(() => this.StartTrackingOnHighlightCanvas()); this.SetupNext(); }
public void Init() { KSensor = new Kinect(); }