Download presentation
Presentation is loading. Please wait.
Published byChristina Ball Modified over 9 years ago
1
CPVR 2013 Tutorial
5
Native Managed Applications Toolkit Drivers Runtime Skeletal Tracking
6
IR Emitter Color Sensor IR Depth Sensor Tilt Motor Microphone Array
10
KinectSensor kinect = null; void StartKinectST() { kinect = KinectSensor.KinectSensors.FirstOrDefault(s => s.Status == KinectStatus.Connected); // Get first Kinect Sensor kinect.SkeletonStream.Enable(); // Enable skeletal tracking skeletonData = new Skeleton[kinect.SkeletonStream.FrameSkeletonArrayLength]; // Allocate ST data kinect.SkeletonFrameReady += new EventHandler (kinect_SkeletonFrameReady); // Get Ready for Skeleton Ready Events kinect.Start(); // Start Kinect sensor } private void kinect_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e) { using (SkeletonFrame skeletonFrame = e.OpenSkeletonFrame()) // Open the Skeleton frame { if (skeletonFrame != null && this.skeletonData != null) // check that a frame is available { skeletonFrame.CopySkeletonDataTo(this.skeletonData); // get the skeletal in this frame... HANDLE SKELETAL DATA HERE... }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.