https://github.com/krishbharadwaj5678/handdrive
Control Hill Climb Racing using hand gestures with real time webcam detection. Open your hand to accelerate, close your fist to stop and reverse the car.
https://github.com/krishbharadwaj5678/handdrive
artificial-intelligence computer-vision cvzone game-automation game-development gesture-recognition github hill-climbing machine-learning mediapipe mediapipe-hands opencv pyautogui python python-game python3
Last synced: 27 days ago
JSON representation
Control Hill Climb Racing using hand gestures with real time webcam detection. Open your hand to accelerate, close your fist to stop and reverse the car.
- Host: GitHub
- URL: https://github.com/krishbharadwaj5678/handdrive
- Owner: KrishBharadwaj5678
- Created: 2025-05-18T08:19:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-28T08:10:57.000Z (about 1 month ago)
- Last Synced: 2026-04-28T10:11:53.828Z (about 1 month ago)
- Topics: artificial-intelligence, computer-vision, cvzone, game-automation, game-development, gesture-recognition, github, hill-climbing, machine-learning, mediapipe, mediapipe-hands, opencv, pyautogui, python, python-game, python3
- Language: Python
- Homepage:
- Size: 13.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# â HandDrive
Welcome to **HandDrive**, a Python based computer vision project that lets you control the car in **Hill Climb Racing** using hand gestures.

## đ§ Features
| Feature | Description |
| ---------------------------------------- | ------------------------------------------------------------------ |
| đī¸ **Real time hand gesture detection** | Uses **MediaPipe** for fast and efficient hand tracking |
| đ **Intuitive gesture controls** | đī¸ **Open Hand** â Triggers the **Accelerate** command
â **Closed Hand** â Triggers the **Brake** command |
| đšī¸ **Game automation** | Designed for **Hill Climb Racing** |
| đĨī¸ **Webcam based control** | No additional hardware required - just a webcam |
| đ¯ **Accurate finger detection** | Performs well even under varied lighting conditions |
| đ **Hands free experience** | Play the game without touching keyboard or mouse |
| đ **Real-time visual feedback** | Displays hand landmarks and gesture detection live |
---
## đ ī¸ Tech Stack
| Technology | Description |
| ------------------------------------------------------- | ---------------------------------------------- |
| đ **Python 3** | Core programming language used for the project |
| đ¤ **MediaPipe** | Real time hand and finger tracking |
| đĨī¸ **OpenCV** | For webcam access and image/video processing |
| đ§° **CVZone** | Simplifies working with OpenCV and MediaPipe |
| đŽ **pyautogui** | Simulates keyboard presses to control the game |
---
## đ How It Works
1. đī¸ **Open Hand (All fingers extended)**
â Simulates pressing the **accelerate** key to move the car **forward**.
2. â **Closed Fist (All fingers folded)**
â Simulates pressing the **brake** key to **stop** the car and move it **backward**.
---
## đĻ Installation
### 1ī¸âŖ Clone the Repository
```bash
git clone https://github.com/KrishBharadwaj5678/HandDrive.git
```
### 2ī¸âŖ Navigate to the Folder
```bash
cd HandDrive
```
### 3ī¸âŖ Install the Dependencies
```bash
pip install -r requirements.txt
```
### 4ī¸âŖ Run the Project
```bash
python main.py
```
---
## Contributing đ¤
Want to contribute? Here's how:
1. đ´ Fork the repository.
2. đŋ Create a new branch (`git checkout -b feature-name`).
3. âī¸ Make your changes and commit them (`git commit -am 'Add feature-name'`).
4. đ Push to your branch (`git push origin feature-name`).
5. đ Submit a pull request to merge into the main branch.