Code samples

These samples illustrate how to build applications and experiences by using Kinect for Windows. Some are designed to provide a quick overview of a particular feature and others are more robust and can serve as a template for building an app. You must download and install the Kinect for Windows SDK and toolkit for the full developer experience, but the code here is easy to browse, and you can submit feedback about the samples in CodePlex discussions.

Filter by:
Demonstrates the basic scenario of using the AudioSource to capture audio for visualization of the audio data. Also shows how to determine the sound source angle.
Demonstrates the basic scenario of using the AudioSource to capture audio for visualization of the audio data. Also shows how to determine the sound source angle.
Demonstrates the basic scenario of using the AudioSource to capture audio for visualization of the audio data. Also shows how to determine the sound source angle.
Demonstrates how to capture audio from the Kinect sensor's audio device.
Demonstrates many features of the Kinect audio pipeline and APIs.
Demonstrates the basic scenario of using the ColorImageStream and displaying an updated image 30 frames per second. Also shows how to save one frame as a .png file.
Demonstrates the basic scenario of using the ColorImageStream and displaying an updated image 30 frames per second. Also shows how to save one frame as a .png file.
Demonstrates the basic scenario of using the ColorImageStream and displaying an updated image 30 frames per second. Also shows how to save one frame as a .png file.
Demonstrates a basic use of controls in a Kinect interaction experience.
Demonstrates how to use the Kinect DepthImageStream in a C++/Direct3D sample.
Demonstrates the basic scenario of using the DepthImageStream (in near mode or default mode) and displaying an updated image 30 frames per second.
Demonstrates the basic scenario of using the DepthImageStream (in near mode or default mode) and displaying an updated image 30 frames per second.
Demonstrates the basic scenario of using the DepthImageStream (in near mode or default mode) and displaying an updated image 30 frames per second.
Demonstrates a 3D visualization (point cloud) using the ColorImageStream and DepthImageStream in a C++/Direct3D sample.
Demonstrates the scenario of using face tracking functionality with WPF 3D rendering.
Demonstrates the basic scenario of using face tracking functionality.
Demonstrates using Face Tracking SDK to track and visualize a single face or multiple faces.
Demonstrates removing the background and leaving people from the ColorImageStream. Effects similar to green-screening can be achieved.
Demonstrates removing the background and leaving people from the ColorImageStream. Effects similar to green-screening can be achieved.
Demonstrates the basic scenario of using an infrared stream and displaying an updated image 30 frames per second.
Demonstrates the basic scenario of using an infrared stream and displaying an updated image 30 frames per second.
Demonstrates use of Kinect controls and interactions in an integrated experience with examples for navigation, engagement, an article viewer, a video player, and a pannable map following design principle described in the HIG.
Demonstrates how to use Kinect sensor along with the MATLAB API in a C++/Direct2D sample.
Demonstrates how to use Kinect sensor while making use of OpenCV runtime libraries in a C++/Direct2D sample.
Demonstrates how to use the Kinect sensor's ColorImageStream, DepthImageStream, SkeletonStream, and AudioSource.
Demonstrates how to use the Kinect sensor's ColorImageStream, DepthImageStream, SkeletonStream, and AudioSource.
Demonstrates the basics of Kinect Fusion for 3D reconstruction. Please review the documentation for the hardware and software requirements.
Demonstrates the basics of Kinect Fusion for 3D reconstruction. Please review the documentation for the hardware and software requirements.
Demonstrates additional features of Kinect Fusion for 3D reconstruction. Please review the documentation for the hardware and software requirements.
Demonstrates additional features of Kinect Fusion for 3D reconstruction. Please review the documentation for the hardware and software requirements.
Josh Blake, Kinect for Windows MVP, built an application that allows you to advance PowerPoint slides by using Kinect gestures. Full source code is published under an open source license.
Demonstrates a simple game using skeletal tracking and speech recognition.
Demonstrates the basic scenario of using the SkeletonStream (in default mode or seated mode) and displaying an updated skeleton visualization 30 frames per second.
Demonstrates the basic scenario of using the SkeletonStream (in default mode or seated mode) and displaying an updated skeleton visualization 30 frames per second.
Demonstrates the basic scenario of using the SkeletonStream (in default mode or seated mode) and displaying an updated skeleton visualization 30 frames per second.
Demonstrates the basic scenario of using speech recognition to move a turtle image around the screen—"forward," "back," "turn left," and "turn right" are the commands used.
Demonstrates the basic scenario of using speech recognition to move a turtle image around the screen—"forward," "back," "turn left," and "turn right" are the commands used.
Demonstrates the basic scenario of using speech recognition to move a turtle image around the screen—"forward," "back," "turn left," and "turn right" are the commands used.
Demonstrates using audio sound source angle to identify different players using speech recognition to control a simple TicTacToe game.
Demonstrates DirectX 11 interop with WPF including full WPF composition of DirectX surfaces. Features a variation of the Depth-D3D visualization.
Demonstrates how to use the Kinect ColorImageStream, DepthImageStream, and SkeletonStream in a C#/XNA sample.