Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aslandevbrat/gesture_vidgame
Gesture-controlled Video Game. Just swing your finger and play the game without touching your PC
https://github.com/aslandevbrat/gesture_vidgame
camera-feed cursor game-window machine-learning mediapipe mediapipe-hands pose pycharm python3 video-game
Last synced: 27 days ago
JSON representation
Gesture-controlled Video Game. Just swing your finger and play the game without touching your PC
- Host: GitHub
- URL: https://github.com/aslandevbrat/gesture_vidgame
- Owner: AslanDevbrat
- License: gpl-3.0
- Created: 2021-06-11T09:42:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T15:43:04.000Z (about 3 years ago)
- Last Synced: 2024-09-26T06:03:20.230Z (about 1 month ago)
- Topics: camera-feed, cursor, game-window, machine-learning, mediapipe, mediapipe-hands, pose, pycharm, python3, video-game
- Language: Python
- Homepage:
- Size: 81.8 MB
- Stars: 45
- Watchers: 5
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gesture Controlled Video Game
### Detailed Blog : [Analytics Vidhya Blog](https://www.analyticsvidhya.com/blog/2021/06/gesture-controlled-video-game/)## Introduction
This project is an amazing blend of Computer vision and Video Game.
In simple words I can say move you finger in front of camera
and just drive the car as show in the following gif![](Hnet-image.gif)
### I know you want play too !!!
## Prerequisite
Python libraries that are required by the project are given in the
`requirement.txt`
Apart from it if you have Pycharm that would be great but not mandatory.## Installation
1. Clone this repository
`git clone https://github.com/AslanDevbrat/gesture_VidGame.git`
2. Open the file either in PyCharm or other IDE
3. Now open a terminal in the current directory and run `python main.py`
![](main_py.gif)
**Remember Don't close the game Window only minimize it**
4. Now open Another terminal in the same directory and run `python camera.py`
![](camera_py.gif)
**Remember Don't close this window only minimize it if you want to close it press 'q'**
5. This is the last step, but the most important step. If you have followed me till now you have
got two different window one which shows camera feed, and the one which show the game. Now place
these two window side by side and **click on the game window**. If you don't click on game
window your camera feed will freeze.
**Note** In the following gif, when my cursor is on the hand tracking window the camera feed freezes.
So to avoid it move your cursor and **click on the game window**
![](final.gif)