Skip to content

AyuK03/Gesture-Based-Game-Controller_Authentic_Geeks

Repository files navigation

Gesture-Based-Game-Controller_Authentic_Geeks

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:

  1. OpenCV,
  2. MediaPipe,
  3. TensorFlow,
  4. 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.

Gesture-Based Game Controller

Introduction

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.

Table of Contents

Prerequisites

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)

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/username/gesture-based-game-controller.git
    
  2. Navigate to the project directory:

    cd gesture-based-game-controller
    
  3. Install the required packages using pip:

    pip install -r requirements.txt --upgrade
    

Usage

  1. Run the main application script:

    python main.py
    
  2. Calibrate the system to recognize your gestures properly.

  3. Launch your favorite game.

  4. Start playing and controlling the game using gestures!

Supported 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:

change_block

hard_drop

move_block_left


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!

About

Winter Hackathon NIT Goa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published