Skip to content

Mehnaz2004/Gestured-Controlled-Car-Racing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gesture-Controlled Car Racing Game

🚗 Control any game using hand gestures with AI/ML!


📌 Overview

The Gesture-Controlled Car Racing Game (GCG) is an AI/ML-powered project built to provide an accessible gaming experience — especially for people with physical disabilities — by allowing them to control games with hand gestures of their choice. Whether you're playing a racing game, platformer, or FPS, GCG lets you swap traditional keyboard inputs with customized gesture-to-key mappings.


✨ Features

  • 🎮 Gesture-Based Controls – Move, jump, accelerate, or perform any in-game action using real-time hand tracking.
  • 🧠 CNN-Based Gesture Recognition – Deep learning model trained using TensorFlow for high-accuracy gesture detection.
  • 🎥 Webcam Only – No special hardware required.
  • Real-Time & Responsive – Minimal latency for a seamless gaming experience.
  • 🧩 Custom Gesture-to-Key Mapping – Fully configurable key bindings based on user gestures.
  • 🌍 Cloud-Synced Gesture Profiles – Supports multiple saved settings per user account.
  • 🎮 Supports All PC Games – Any game that accepts keyboard inputs can be controlled.

🛠 Tech Stack

  • Programming Language: Python
  • Libraries & Tools:
    • OpenCV – real-time video feed
    • MediaPipe – hand tracking
    • TensorFlow – gesture classification
    • PyAutoGUI – simulates keyboard input
    • Flask – lightweight web server for UI
    • pymongo & dnspython – MongoDB integration
    • python-dotenv – for environment variable handling

All packaged using PyInstaller for executable distribution.


🚀 How to Run (Development Mode)

1️⃣ Prerequisites

  • Python 3.8+
  • pip installed

2️⃣ Clone the Repository

git clone https://github.com/Mehnaz2004/Gestured-Controlled-Car-Racing-Game.git
cd Gestured-Controlled-Car-Racing-Game

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Start the App

python app.py

💾 Want the Executable Instead?

You can download the pre-built Windows .exe file from:


📬 Contact

If you encounter any issues or have suggestions, feel free to reach out.


🕹️ Enjoy the future of accessible gaming!

About

The Gesture-Controlled Car Racing Game uses machine learning to interpret hand gestures as in-game actions, replacing traditional controls. This project enhances gaming by offering an intuitive, hardware-free way to steer, accelerate, and brake in racing games.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors