PongVision
We wanted to take the original game of pong and add a physical and active control system. PongVision uses computer vision and deep learning to track your face, which is then used to control the paddles. The game works best when doing pushups approx 1 meter away from the camera!
Dependencies
Please make sure you are running python3, and please use requirements.txt to easily get the python packages we used!
VERY IMPORATNT: You need 2 players to play them game. Currently there is no 1 player mode, but that might be a future add-on!
How to run
- Open terminal
- Clone repo:
git clone https://github.com/bluepra/CheeseHacks_2022.git
- Change directory to the repo folder:
cd CheeseHacks_2022
- Create virtual env:
python3 -m venv venv
- Activate environment:
- Mac or Linux:
source ./venv/bin/activate
- Windows:
.\venv\Scripts\activate
- Mac or Linux:
- Install dependencies:
pip install -r requirements.txt
- To run the game:
python3 Game.py
Motivation
Physical exercise is absolutely crucial to stay healthy. But sometimes, just exercise alone can get boring. We wanted to make a competitive game that allows people to challenge their friends into getting active, healthy, and entertained all at the same time!
Tech Stack
- Python
- OpenCV
- Mediapipe
- Pygame
Gameplay Images
Extra
- Made by: Prannav Arora, Ryan Almizyed, and Mitchell Brenner!
- We made this project as part of the UW Madison CheeseHacks 2022 Hackathon!
- Project got 2nd place out of 30 teams.