/Gestures-Samples

Project Prague Code Samples

Primary LanguageC#MIT LicenseMIT

Overview

This repository contains code samples demonstrating how to use the Project Prague hand gestures SDK. For a quick introduction to programming with our SDK, please visit our overview page on docs.microsoft.com. In order to build and run the code samples provided in this repository, you must first set up Project Prague on your machine. Note that you will need either an Intel® RealSense™ SR300 camera or a Kinect for Windows v2 camera to enable our gesture detection runtime.

Code Samples

After cloning this repository, please open the Microsoft.Gestures.Samples soulution in Visual Studio. You will find 12 projects in this solution. Each project is a stand-alone code sample that can be built and run independently of the other projects. The table below lists the samples ordered from the least to the most advanced:

Sample Use case What will you learn?
ConsoleCore, ConsoleNative Test gesture detection in a command-line window Create several simple gestures and register them to the Gestures Service
RotateSample, RotateSampleUwpManaged, RotateSampleUwpNative Rotate an image by 90° Create a simple gesture made up of two hand poses
VideoPlayerGestureControl, VideoPlayerGestureControlUwpNative Pause and rewind audio\video playback Create a simple gesture made up of multiple hand poses and a hand motion
RockPaperScissors Play Rock-Paper-Scissors against an invincible bot Create a gesture made up of multiple hand poses connected in a complex structure
GrabAndPushUwpNative Scale up\down a UWP control using gestures Create a simple gesture and consume hand skeleton stream
Camera3D Manipulate camera in a 3D scene Create a simple gesture and consume hand skeleton stream
GesturesPowerPointPlugin (requires Office Tools for Visual Studio) Create and present a slideshow in PowerPoint using gestures Create multiple simple gestures and wire them to activate various PowerPoint features
CarGestures Control a virtual car's infotainment-system with gestures Create a complete WPF UI with multiple gestures of varying complexity
Unity Package and Tutorial Projects Follow our Unity tutorial Integrate gestures and hand-skeleton input in your Unity games

Sample Projects - Naming Conventions

Suffix Meaning
No suffix Standard WPF project
*Native Native project complient with C++ 11 standard (portable to Linux)
*Core .NET Core 2.0 project (supported on Linux)
*UwpManaged Universal Windows Platform C# project
*UwpNative Universal Windows Platform C++/CX project

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.