Skip to content

Quratulain-bilal/finger-gesture-drawing-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Finger Gesture-Based Drawing App 🎨🖐️

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.


Features ✨

  • 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.

Tech Stack 🛠️

  • 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.

Installation 🚀

Prerequisites

  • Python 3.7 or higher.
  • A webcam.

Steps to Run the Project

  1. 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.

Key Features of This README.md:

  1. Clear and Concise:

    • Easy to read and understand.
    • Highlights the key features and functionalities.
  2. Demo Section:

    • Add a GIF or screenshot to showcase the app in action.
  3. Step-by-Step Installation:

    • Provides clear instructions to set up and run the project.
  4. Project Structure:

    • Explains the files and folders in the project.
  5. Contributing and License:

    • Encourages collaboration and specifies the license.
  6. Connect with Me:

    • Adds a personal touch and invites others to connect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages