What Is This Project?
Imagine you're playing a car racing game… but instead of using a joystick or keyboard, you just move your hands in front of a camera to drive the car! This project makes that possible using a webcam, Python.
You can:
- 👐 Turn your hands left or right to steer the car.
- 👍 Move your thumb down to speed up or slow down. It’s like magic! But it’s actually made using something called Computer Vision.
This project is designed for complete beginners and fun enthusiasts who want to control a car using hand gestures with a webcam. The program uses MediaPipe to track your hand, calculates the angle between your wrist, thumb, and index finger, and based on that angle, it sends keyboard commands to the game.
No fancy equipment needed—just a webcam, your hand, and a game that uses the keyboard (like pressing A/D to steer).
Let’s dive into how it works in the simplest way possible.
Supplies
Here’s everything you need:
- ️ A laptop or desktop computer (Windows, macOS, or Linux)
- A webcam (built-in or USB)
- Python installed (version 3.7 or later)
- Python packages:
- opencv-python
- mediapipe
- pyautogui
Loyd Lobo
Andy from Workshopshed
Álvaro Bátrez