GithubHelp home page GithubHelp logo

dodgeface's Introduction

参赛作品名

【AI创造营】是男人就坚持100秒(DodgeFace)

如果你没有很好的机器(也就是运行这个项目很卡的话)可以去新的项目,新的项目有更完整的人物技能等

作品简介

和传统的《是男人就坚持X秒》一样,只不过这次你需要让你的脸来躲避那些飞来的小球

使用方式

保证你的脸在摄像头可以拍摄的范围内,运行程序```

python DodgeFace.py   

移动你的身体、转动你的头颅躲避那些飞来的小球

如果没检测到你的脸会直接Game Over哦

程序中设定了危险像素大小,当你的脸小于某个像素量(dangerPixel)的时候,你的脸会变红,提示你靠近摄像头一点,否则当脸的像素小于最小像素量(minPixel)的时候则会直接Game Over。

如果不小心死掉了,按r重新开始,按其他的则退出游戏

一些提示

程序默认开启了GPU以保证程序的正常运行,如果没有GPU可能会很卡,咳咳

当然可以换成整个人来躲避球,这个只需要改动一行代码就行,不过建议同时改大球的半径,不然我怕你看不清球,哈哈

有点忙,还有些优化的地方没有做,之后再补吧,嘻嘻

希望大家玩得开心~

链接:

dodgeface's People

Contributors

ninetailskim 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.