Welcome to GestureGlide, an enthralling Rock-Paper-Scissors game meticulously crafted with the power of Python and OpenCV. Step into a realm where AI meets human interaction, utilizing the language of hand gestures to decipher your strategic intent. As you stand across the digital table from your AI adversary, your open hand transforms into the solid symbol of Rock, the airy flutter of Paper, or the decisive form of Scissors. Engage in a symphony of technology and imagination, where your gestures hold the key to victory. Explore the immersive landscape of GestureGlide, where code and creativity collide. ๐ค๐ชจ๐โ๏ธ
- Real-time hand tracking using OpenCV.
- Play against an AI that randomly selects Rock, Paper, or Scissors.
- Interactive timer to track game duration โฑ๏ธ.
- Visual representation of your move and AI's move ๐ค.
- Keeps track of player and AI scores ๐.
๐ Clone the repository:
git clone https://github.com/Shubh2-0/gesture-glide.git cd gesture-glide
๐ Install the required libraries:
pip install opencv-python cvzone
๐ Place your background image and move images in the resources/ directory.
โด๏ธ Run the game script:
python game.py
โด๏ธ Press the 'x' key to start the game after the webcam feed is displayed.
โด๏ธ Show your hand gesture to select Rock, Paper, or Scissors when the timer reaches 3 seconds.
โด๏ธ The AI will make its move simultaneously, and the winner of the round will be displayed.
๐ฏ Press 'x': Start the game.
๐ฏ Gesture your hand to select Rock, Paper, or Scissors.
Curious about how GestureGlide works? Watch our detailed video presentation to see the gameplay in action and learn more about the project's features.
๐น GestureGlide Video Presentation
Python |
PyCharm |
Github |
Contributions are welcome! Here's how you can contribute to this project:
- Fork the repository.
- Create a new branch for your feature: git checkout -b feature-new-feature
- Commit your changes: git commit -m 'Add new feature'
- Push to the branch: git push origin feature-new-feature
- Open a pull request.
If you want to contact me, you can reach me through below handles.