Winter Hackathon NIT Goa - Nov 2023
Team Name : Authentic_geeks Team Leader: Ayushi Kandpal (22CSE1004) Team Member: Rakshitha K (22CSE1028)
Problem Statement: Gesture Based Game Controller
Theme: Python
Libraries Used:
- OpenCV,
- MediaPipe,
- TensorFlow,
- PyAutoGUI
Features:
-
Gesture Recognition: The primary feature of the controller is its ability to recognize gestures like hand movements and finger gestures to control the Tetris blocks.
-
Positional Tracking: Ensure accurate tracking of the player's hand or body position, allowing precise control over the Tetris pieces' movement.
-
Rotations: Enable gesture-based rotations for the Tetris pieces. For instance, specific gesture to rotate the piece 90 degrees clockwise.
-
Gesture for Dropping: A distinct gesture to make the Tetris piece drop instantly to the bottom.
Welcome to the Gesture-Based Game Controller project! This project aims to create an innovative and immersive gaming experience by utilizing gestures for controlling games. This README file provides essential information for setting up, configuring, and using the Gesture-Based Game Controller system.
Before you begin, ensure you have the following installed:
- Operating System: Windows 10, macOS, or Linux
- Hardware: Compatible camera or sensor for gesture recognition
- Software: Python 3.6 or higher, required libraries (specified in
requirements.txt
)
-
Clone the repository to your local machine:
git clone https://github.com/username/gesture-based-game-controller.git
-
Navigate to the project directory:
cd gesture-based-game-controller
-
Install the required packages using
pip
:pip install -r requirements.txt --upgrade
-
Run the main application script:
python main.py
-
Calibrate the system to recognize your gestures properly.
-
Launch your favorite game.
-
Start playing and controlling the game using gestures!
The Gesture-Based Game Controller supports the following gestures:
- One Finger: Move the block by one unit to the right (Right Arrow Key)
- Two Finger/Three Fingers: Move the block by one unit to the left (Left Arrow key)
- Fist: Perform action as Hard Drop (Space Bar)
- Open Hand: Change the Shape of the block or perform rotations (Up Arrow Key)
- Ok : Perform action as Soft Drop (Down Arrow Key)
- ESC: Press esc to exit from gesture control
Project Demo:
Thank you for using the Gesture-Based Game Controller! If you have any feedback or suggestions, feel free to open an issue or reach out to the project maintainers. Happy gaming!