Skip to content

Shalini828/ai-gesture-drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 AI Gesture Drawing App

A real-time hand gesture-based drawing application built using OpenCV and MediaPipe. Control your canvas using just your hands β€” no mouse, no keyboard required πŸ€–βœ¨


πŸš€ Features

  • ✏️ Draw with gestures (pinch to draw)
  • 🧽 Erase using hand gesture
  • πŸ”„ Undo functionality
  • πŸ’Ύ Save drawings
  • 🎨 Dynamic brush size control
  • 🎯 Color palette selection
  • πŸ€– Gesture-based controls (no keyboard needed)
  • ✨ Smooth drawing with glow effects
  • πŸ”Š Interactive sound feedback

🧠 Gesture Controls

Gesture Action
🀏 Pinch (thumb + index) Draw
✌️ Two fingers Erase
βœ‹ Open palm Save
✊ Fist Clear canvas
πŸ‘ Thumb up Undo

πŸ›  Tech Stack

  • Python
  • OpenCV
  • MediaPipe
  • NumPy

βš™οΈ Installation

Clone the repository:

git clone https://github.com/your-username/ai-gesture-drawing.git
cd ai-gesture-drawing

Install dependencies:

pip install opencv-python mediapipe numpy

▢️ Run the App

python main.py

🎯 How It Works

  • Uses MediaPipe Hands to track hand landmarks in real-time
  • Detects gestures based on finger positions
  • Maps gestures to actions like drawing, erasing, saving, etc.
  • Uses OpenCV to render drawings on a virtual canvas

πŸ“Œ Future Improvements

  • 🎨 Shape drawing (circle, rectangle)
  • 🌐 Web-based version (React + TensorFlow.js)
  • 🧠 AI gesture classification model
  • πŸ“± Mobile app version

🀝 Contributing

Contributions are welcome! Feel free to fork this repo and improve it πŸš€


⭐ Support

If you like this project, give it a ⭐ on GitHub!


πŸ‘©β€πŸ’» Author

Shalini Kumari


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages