Code Monkey home page Code Monkey logo

posetetris's Introduction

PoseTetris

体感俄罗斯方块游戏.使用姿态估计来控制俄罗斯方块的体感游戏,让你在家也能锻炼身体

安装使用方法(Win)

1.安装pytorch环境

已经安装的可以跳过该步骤,没有安装的可以参考视频教程:
https://www.bilibili.com/video/BV1kL4y1i7C8/

2.下载PoseTeris源码

从github地址clone或者直接浏览器下载源码
https://github.com/DL-Practise/PoseTetris

3.安装依赖环境

进入到PoseTeris的根目录,打开命令行(powershell)
执行pip install -r requirment.txt

4.启动PoseTetris

进入到PoseTeris的根目录,打开命令行(powershell),执行python main_widget.py 启动程序

5.配置姿态

打开程序后默认就是配置姿态界面。俄罗斯方块一共需要四种命令,左移,右移,变形,快速向下。默认已经有四种姿态与命令对应,左移是抬起左手,右移是抬起右手,变形是同时抬起双手,快速向下是下蹲(注意需要膝盖向外)。如果需要修改姿态,可以使用鼠标移动到关节点上面,点击鼠标左键拖动。同时也可以修改关键骨骼(关键骨骼的作用见:姿态比对),将鼠标移动到骨骼中点,左键点击,骨骼变红,表示已经将该骨骼设置为关键骨骼,点击鼠标右键,表示取消设置为关键骨骼。最终,关键骨骼会用红色表示。如果想恢复默认的姿态控制,点击姿态重置按钮即可。

6.开始游戏

点击进入到游戏界面,并点击右侧的开始按钮。然后人退到能够让摄像头将整个人都拍摄到的距离。此时,就可以愉快的享受体感俄罗斯方块了,祝君开心!

posetetris's People

Contributors

dl-practise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Sox avatar Noriaki avatar lanxi avatar Maneko avatar linlin avatar  avatar  avatar  avatar  avatar phy12321 avatar  avatar adam li avatar amadman avatar  avatar probability avatar  avatar  avatar  avatar

Watchers

 avatar bill avatar  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.