Giter Site home page Giter Site logo

kinect_projection_operation's Introduction

# 简介

此项目为2016年微软创新杯参赛项目,功能是利用Kinect,使得投影仪投出的投影变得可以直接用手操控,就好像墙上的投影变成了一块大型的平板电脑一样。同时还可以用手势调用一些常用操作,目前实现了用手势来调用撤销。

项目的基本**是识别出指尖来调用鼠标,然后根据指尖和投影屏幕距离的远近来判断是否为点击状态。

运行环境

  • Kinect for Windows V2
  • Kinect SDK 2.0
  • OpenCV 3.0

使用方法

  1. 将Kinect置于投影正前方,尽量与投影保持平行.
  2. 将投影的分辨率和电脑的分辨率设为一样,投影模式选择复制,目前不支持扩展模式.
  3. 投出一张纯色的图片,使得投影区域全部为纯色,不要有任何其他的界面.
  4. 运行程序,程序会在5s后自动识别屏幕,然后新建出两个图像窗口。因此在5s后从纯色图片中切出来,检查两个图像窗口.
  5. 在彩色图像中,识别出的屏幕边缘为红色,确保位置基本正确。然后检查深度图像,绿色的点代表这个方向上比较靠近屏幕,调整Kinect的位置直到没有绿色的点为止,然后重新识别和调整,直到识别出的结果没有绿色为止.
  6. 按F1激活程序,这时候已经可以在投影上进行操作了。建议使用画图来测试.

效果

直接在墙上的投影上进行书写(视频地址)

用手控制PPT翻页

在墙上玩游戏(视频地址)

流程图





原理

  1. 识别出投影区域
  2. 识别出指尖
  3. 识别出手势
  4. 获取投影区域的深度、指尖的深度
  5. 用指尖调用鼠标,手势调用其他操作,操作范围限定在投影区域内

详细介绍在这里

kinect_projection_operation's People

Contributors

hyrepo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.