Coder Social home page Coder Social logo

opencv-game's Introduction

opencv手势识别

基于opencv实现的石头剪刀布的人机交互小游戏。

虽说原理很简单,但是实现起来,还是有一些复杂的,首先声明代码并非原创,所以有些部分我也不太明了,毕竟自己学习Python+opencv才一个月左右

上图来看看吧。 石头剪刀布


能力有限,但也是把这位大神的代码移植到了3.0上,而且是可以运形的,我发现了几个问题:

  1. 他的算法,他区别手势的算法,应该是利用手势遮挡的屏幕的大小来区分,因为在调试过程中,往往遇到识别错误的情况,就是把石头识别成了布。
  2. 他的局限性,就是他的项目对于摄像头背景要求比较高,比如我昨天在宿舍测试,基本都是不准的,因为我看到他膨胀之后的图基本都是乱的,因为宿舍的背景太乱,物体太多,所以调试的时候尽量使背景整洁,最好是一面纯色的墙。
  3. 拓展:我在想可不可以对接Face++api的手势识别做一些小游戏呢,比如手势翻页,手势开关音乐,感觉还是很简单的,估计几十行代码就可以实现了。

总之还是有收获的。 我的个人博客--个人站

opencv-game's People

Contributors

az666 avatar

Watchers

James Cloos 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.