A simple yet powerful AI-powered tool that counts how many fingers you're holding up using your webcam in real time!
Built with Python, OpenCV, and MediaPipe, this project is a great starting point for learning gesture recognition.
This project detects your hand and counts the number of fingers you're showing (from 0 to 5) using real-time webcam input.
It then displays the finger count on the screen with a live overlay.
✅ Real-time finger counting with MediaPipe
✅ Displays the current number of fingers held up (0–5)
✅ Detects both left and right hands
✅ Easy to use — no setup beyond your webcam
✅ Great for learning computer vision basics!
- How to use MediaPipe Hands to detect hand landmarks
- How to identify which fingers are up based on joint positions
- Drawing UI overlays with OpenCV
- Real-time computer vision interaction with Python
-
Install the required dependencies, globlally or by creating a virtual environment:
pip install -r requirements.txt
-
Run the application:
python virtualMouse.py
- OpenCV
- MediaPipe
- Numpy
Contributions are welcome! 🙏 If you have any ideas for improvements, feel free to submit a pull request.
Follow me for more exciting projects like this! 🤩