Skip to content

SubashSK777/Racing-CV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OpenCV Mediapipe NumPy

🧤 Racing CV: Next-Gen Gesture Controller


🚀 Overview

Experience Asphalt 8 like never before. Racing CV transforms your webcam into a high-precision gesture input device. No controller? No problem. Use your hands to steer, drift, and blast through the competition with Nitro!

✨ What's New (v2.0)

  • Object-Oriented Refactor: Clean, modular code for maximum performance.
  • Modern HUD: Real-time steering wheel indicator and status bars.
  • Instructional Popup: Intuitive setup guide before the race begins.
  • Low Latency: Optimized hand tracking with MediaPipe.

🎮 Game Controls

Action Gesture Icon
STEER Rotate hands at 9 & 3 o'clock
ACCELERATE Both palms wide open (🖐️ 🖐️) 💨
BRAKE/DRIFT Both hands as fists (✊ ✊) 🛑
NITRO Thumb up gesture (👍)

🛠️ Installation

  1. Clone the Repo

    git clone https://github.com/SubashSK777/Racing-CV.git
    cd Racing-CV/Asphalt 8
  2. Install Dependencies

    pip install -r requirement.txt
  3. Ignite the Engine

    python main.py

🧠 How it Works

graph TD
    A[Webcam Feed] --> B(MediaPipe Hand Tracking)
    B --> C{Gesture Recognition}
    C -->|Tilt Angle| D[Virtual Steering Wheel]
    C -->|Fingers Count| E[Pedal Logic]
    D --> F[SendInput API]
    E --> F
    F --> G[Asphalt 8 Game]
    G --> H((Victory! 🏆))
Loading

🌟 Visual HUD

The all-new Modern HUD provides real-time feedback:

  • Steering Wheel: Rotates as you tilt your hands.
  • Power Bars: Visual confirmation for Accel/Brake/Nitro.
  • Safety: "Show Both Hands" warning when lost.

🤝 Contributing

Got ideas to make it faster? 🏎️💨 Feel free to fork, star, and submit an issue or PR!

📜 License

This project is licensed under the GPL License.


MADE WITH ❤️ FOR RACERS

About

Computer Vision python program to play games using hand gestures

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages