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!
- 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.
| 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 (👍) | ![]() |
-
Clone the Repo
git clone https://github.com/SubashSK777/Racing-CV.git cd Racing-CV/Asphalt 8 -
Install Dependencies
pip install -r requirement.txt
-
Ignite the Engine
python main.py
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! 🏆))
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.
Got ideas to make it faster? 🏎️💨 Feel free to fork, star, and submit an issue or PR!
This project is licensed under the GPL License.
MADE WITH ❤️ FOR RACERS

