Kinect应用: PowerPoint播放

本文介绍了一种利用Kinect SDK进行基本手势识别的方法,以此实现对PowerPoint演示文稿的控制。通过简单的手势,如伸出左右手臂,可以分别实现翻页到下一张或上一张的功能。

 http://kinectpowerpoint.codeplex.com/

Project Description
This project shows how to use the Kinect SDK to do basic gesture recognition to control PowerPoint.

Joshua Blake
Copyright (c) 2011

Requirements

  • Kinect for Windows SDK beta
  • Microsoft Office

Usage

  1. Compile and run the application
  2. Point the Kinect at you and stand at least five feet away
  3. You can see yourself in the application window and the three ellipses will track your head and hands.
  4. Extend your right arm to activate the "right" or "forward" gesture. Extend your left arm to active the "left" or "back" gesture. These gestures will send a right or left arrow key to the foreground application, respectively.
  5. Run your PowerPoint show so PowerPoint is the foreground application, and the right and left gestures will go forward and back in your deck.

The ellipses grow and change color when your hand exceeds the threshold of 45 centimeters. The gestures will only activate once as your hand exceeds the threshold, and only one of the gestures can be active at once. You must bring your hand back closer to your body to activate the gesture a second time.

The gestures will also work for any other application. For example, open Notepad and type some text then use the gestures to move the cursor left or right one character at a time.

Speech recognition

By default voice recognition is disabled due to false positives, but you can uncomment the call to the StartSpeechRecognition() in MainWindow_Loaded() to enable speech recognition. The recognizer is set up to recognize and respond to the following commands:
  • computer show window
  • computer hide window
  • computer show circles
  • computer hide circles

Limitations

  1. There is currently no way to activate embedded videos, so you should add a PowerPoint animation so the video starts when you push the right arrow key.
  2. The gesture is triggered based upon the distance between the head and the hands, so you might accidentally trigger the gesture if you put your arms out, or bend over to pick something up perhaps.
  3. Speech recognition, if enabled, will currently cause the program to hang after you close the window until the next audio sample is recognized or rejected.
  4. Speech recognition may have a lot of false positive or false negatives. Hopefully this will be improved in future versions of the SDK.

Book

 
Natural User Interfaces in .NET cover
This code is a sample project from my book, Natural User Interfaces in .NET. If you want to learn more about how to design and develop NUIs, please check my book out. If you like this software, please buy my book to show your support and tell your friends! Thanks!

Natural User Interfaces in .NET

Chapter 1 is free at that URL.




License

The source code is made available under the Ms-PL.
 
其它网页:
手势来控制PPT啦

 http://www.prlog.org/11120062-control-your-powerpoint-and-pdf-presentations-with-kinect.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值