https://github.com/mohhasan1/gesture-pong
Gesture Pong is a computer vision-based Pong game where you control the paddle with hand gestures. It uses OpenCV for video capture, MediaPipe for hand detection, and Pygame for game logic.
https://github.com/mohhasan1/gesture-pong
computer-vision deep-learning game mediapipe opencv pyga python3 segmentation
Last synced: about 2 months ago
JSON representation
Gesture Pong is a computer vision-based Pong game where you control the paddle with hand gestures. It uses OpenCV for video capture, MediaPipe for hand detection, and Pygame for game logic.
- Host: GitHub
- URL: https://github.com/mohhasan1/gesture-pong
- Owner: MohHasan1
- Created: 2024-11-07T10:50:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T20:01:08.000Z (over 1 year ago)
- Last Synced: 2025-03-15T11:18:13.155Z (over 1 year ago)
- Topics: computer-vision, deep-learning, game, mediapipe, opencv, pyga, python3, segmentation
- Language: Python
- Homepage: https://www.linkedin.com/feed/update/urn:li:activity:7262993099772035073/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gesture Pong
Gesture Pong is an interactive hand gesture-based version of the classic Pong game, where the player uses hand movements to control the paddle. The game uses OpenCV for video capture, MediaPipe for hand detection, and Pygame for the game display and logic. The objective is to use your hand to move the paddle and hit the ball, aiming to score points while competing against the AI.
## Installation
### Step 1: Set Up a Virtual Environment
# For macOS/Linux
```bash
python3 -m venv env
source env/bin/activate
```
# For Windows
```bash
python -m venv env
env\Scripts\activate
```
# Install dependencies from requirements.txt
```bash
pip install -r requirements.txt
```
## Run the Game Script:
Once the virtual environment is activated and dependencies are installed, run the main.py script to start the game:
```bash
python pingPong.py
```
## Exit the Game Script:
Exit the Game: Close the game window not the webcame