https://github.com/geethasri16/swipe_and_slice
Swipe and Slice Game is an interactive game where players use hand gestures to slice falling fruits. Built with MediaPipe for hand gesture recognition and OpenCV for computer vision, this game provides a fun, real-time experience while tracking the player's movements through the webcam.
https://github.com/geethasri16/swipe_and_slice
computer-vision game-development hand-gesture-recognition interactive-game mediapipe opencv python-game real-time-game
Last synced: 4 months ago
JSON representation
Swipe and Slice Game is an interactive game where players use hand gestures to slice falling fruits. Built with MediaPipe for hand gesture recognition and OpenCV for computer vision, this game provides a fun, real-time experience while tracking the player's movements through the webcam.
- Host: GitHub
- URL: https://github.com/geethasri16/swipe_and_slice
- Owner: Geethasri16
- License: mit
- Created: 2025-05-14T17:12:07.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-14T17:35:11.000Z (5 months ago)
- Last Synced: 2025-06-17T08:07:34.428Z (4 months ago)
- Topics: computer-vision, game-development, hand-gesture-recognition, interactive-game, mediapipe, opencv, python-game, real-time-game
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swipe and Slice Game
"Swipe and Slice" is an exciting and interactive game where you use hand gestures to slice falling fruits. The game utilizes MediaPipe for real-time hand gesture recognition and OpenCV for computer vision.
## Requirements:
* Python 3.x
* OpenCV
* MediaPipe
* NumpyTo install the required libraries, run:
```
pip install -r requirements.txt
```## How to Play:
* A fruit will appear at the top of the screen and fall down.
* Use your hand in front of the webcam to "slice" the fruit by swiping in the air.
* Each time you slice a fruit, you earn points.
* If a fruit hits the ground without being sliced, you lose a life.
* The game ends when all lives are lost.## Key Features:
* Hand Gesture Recognition: The game uses MediaPipe’s hand tracking to detect swipes and movements.
* Simple Gameplay: Track falling fruits with your hands and slice them to earn points.
* Live Feedback: Real-time display of score and remaining lives.## How to Run:
1. Clone the repository:
```
git clone https://github.com/Geethasri16/Swipe_and_Slice.git
```
2. Navigate to the project directory:```
cd swipe-and-slice
```
3. Install the requirements:```
pip install -r requirements.txt
```
4. Run the game:```
python slice_and_dice.py
```
5. Press `q` to quit the game.## Contribution:
Feel free to fork this repository and submit pull requests. Contributions are welcome for adding new features, improving the game, or fixing bugs.