A hand gesture controlled paint application using Python, OpenCV, and Mediapipe. This project allows users to draw on a virtual canvas using hand gestures, making use of hand landmarks for color selection and drawing.
- Draw with different colors using hand gestures.
- Clear the canvas with a hand gesture.
- Switch colors by moving the thumb close to the index finger.
-
Clone the repository:
git clone https://github.com/harshaparida/Hand_cv_sketch.git cd Hand_cv_sketch
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Use your index finger to draw on the screen.
-
Use the buttons on the top of the canvas to change colors or clear the screen.
- OpenCV - Open Source Computer Vision Library
- Mediapipe - Cross-platform ML solutions for live and streaming media
- NumPy - The fundamental package for scientific computing with Python
- Thanks to the developers of OpenCV and Mediapipe for providing the tools necessary to build this project.
Made with โค๏ธ by Harsha