A virtual steering wheel, made with Python and pre-trained machine learning models.
Recently got a webcam, and I've always wanted to explore using it to play around with computer vision (e.g., hand and gesture tracking); so I decided to create a virtual steering wheel with Python.
Uses Python (OpenCV) and the pre-trained models from Mediapipe (Google) to capture video, recognize hands in the frame and then calculate the slope between the two hands to determine which direction to turn in.
Want to see it in action? Click the thumbnail for a demo.
Looking to demo the app yourself? Check this part out.
- Clone the repo
git clone https://github.com/HaiderZaidiDev/virtual-ml-steering-wheel
- Install PIP packages
pip install -r requirements.txt
- Run the Python script
python3 steeringwheel.py
Contributions are welcome, feel free to make a PR!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request