Welcome to the Finger Gesture-Based Drawing App! This interactive application allows you to draw on the screen using hand gestures, change colors by raising fingers, and clear the canvas with a simple palm gesture. It’s a fun and creative way to explore the power of computer vision and gesture recognition.
- Draw Circles: Show your thumb to draw circles on the screen.
- Change Colors: Raise fingers to change colors:
- 1 finger = Red
- 2 fingers = Green
- 3 fingers = Blue
- 4 fingers = Yellow
- Clear Canvas: Show your open palm to erase everything.
- Manual Color Selection: Use the on-screen toolbar to pick colors manually.
- Python: Backend logic.
- Mediapipe: Hand tracking and gesture recognition.
- OpenCV: Real-time video processing.
- Tkinter: GUI and canvas.
- NumPy: Handling image data.
- Pillow: Converting OpenCV images to Tkinter-compatible format.
- Python 3.7 or higher.
- A webcam.
- Clone the Repository:
https://github.com/Quratulain-bilal/finger-gesture-drawing-app.git
Set Up a Virtual Environment (Optional but Recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate Install Dependencies:
bash Copy pip install -r requirements.txt Run the Project:
bash Copy python main.py How to Use 🖌️ Draw Circles:
Show your thumb to the camera to draw circles.
Change Colors:
Raise 1 finger for Red, 2 fingers for Green, etc.
Clear Canvas:
Show your open palm to clear the canvas.
Manual Color Selection:
Use the toolbar on the screen to select colors manually.
Project Structure 📂 Copy finger-gesture-drawing-app/ ├── main.py # Main application script ├── requirements.txt # List of dependencies ├── README.md # Project documentation └── .gitignore # Files to ignore in Git Dependencies 📦 All dependencies are listed in the requirements.txt file. You can install them using:
bash Copy pip install -r requirements.txt Contributing 🤝 Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
License 📜 This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments 🙏 Mediapipe: For providing an excellent hand tracking solution.
OpenCV: For making computer vision accessible.
Tkinter: For simplifying GUI development in Python.
-
Clear and Concise:
- Easy to read and understand.
- Highlights the key features and functionalities.
-
Demo Section:
- Add a GIF or screenshot to showcase the app in action.
-
Step-by-Step Installation:
- Provides clear instructions to set up and run the project.
-
Project Structure:
- Explains the files and folders in the project.
-
Contributing and License:
- Encourages collaboration and specifies the license.
-
Connect with Me:
- Adds a personal touch and invites others to connect.