https://github.com/ssarcandy/usfb-with-cv
use background subtraction to detect user action
https://github.com/ssarcandy/usfb-with-cv
Last synced: 9 months ago
JSON representation
use background subtraction to detect user action
- Host: GitHub
- URL: https://github.com/ssarcandy/usfb-with-cv
- Owner: SSARCandy
- Created: 2015-12-12T15:45:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-08T12:51:42.000Z (almost 10 years ago)
- Last Synced: 2025-07-26T02:39:14.873Z (11 months ago)
- Language: C++
- Homepage: http://ssarcandy.tw/USFB-with-CV/
- Size: 26.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# USFB with CV
### A simple 2D game integrated with openCV webcam input
--
#### Ref
Origin game fork from my another [repo](https://github.com/SSARCandy/Ultimate-Shooting-Flappy-Bird).
In this repo, I modify the game goal to have better fit with CV input.
#### Build
- Required:
- openCV
- openGL
- glut
- for Mac:
1. use CMake (min ver3.0) -> choose `xcode`
2. move `images/` to build directory
3. add `openGL.framework`, `glut.framework` and core lib of `opencv` (usually will at `/usr/local/lib`)
- for Windows:
1. use Cmake -> choose `VisualStudio `
2. move `images/` to build directory
3. set `USFB` as startup project
#### Game Intro:
You will controll a yellow flappy-bird
The goal of this game is to keep dodging the enemies birds, try to live as long as possible.
The gameScore will +1 when you dodge an enemy bird.
#### Control:
- With Keyboard:
- START: `SPACE`
- UP: `W`, `w`
- DOWN: `S`, `s`
- With webcam(CV):
- UP: `Move your hand to top area`
- DOWN: `Move your hand to bottom area`
#### ScreenShot


Tag: openGL, glut, 2D game, flappy bird, openCV, background-subtraction