Skip to content

thammi21/Gesture-Draw-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ŒοΈ GestureDraw AI - Virtual Drawing App with Hand Gestures

GestureDraw AI is a real-time, AI-powered virtual canvas that enables users to draw using just their hand gestures via webcam. It supports brush color/size customization, undo/redo, and the ability to save and resume artwork. Powered by MediaPipe, OpenCV, and PyQt5, this tool is ideal for intuitive, touch-free interaction.


πŸ“Έ Demo

Drawing Example

Drawing 1

Color Change and More

Drawing 2


πŸš€ Features

  • βœ‹ Gesture-Based Drawing

    • Detects hand gestures using MediaPipe
    • Index-thumb pinch gesture used to draw
    • Cursor mode for interaction; draw mode for sketching
  • 🎨 Dynamic Brush & Canvas

    • Change brush color and size on the fly
    • Smooth stroke rendering with OpenCV
  • πŸ” Undo/Redo & Resume

    • Undo or redo previous strokes
    • Resume and continue your previous drawing session
  • πŸ’Ύ Export Work

    • Save your artwork as .jpg images
    • Edit saved images seamlessly

πŸ› οΈ Tech Stack

Component Technology
Language Python 3.x
Gesture Detection MediaPipe
Drawing Engine OpenCV
GUI Framework PyQt5
Image Handling NumPy, OpenCV
Undo/Redo Logic Python deque

πŸ§‘β€πŸ’» How It Works

  1. Launch the app – your webcam feed opens.
  2. Perform the pinch gesture (index + thumb) to start drawing.
  3. Use UI buttons to:
    • Switch between Cursor/Draw Mode
    • Change color or adjust brush size
    • Undo or redo strokes
    • Save your canvas or load previous work

πŸ“¦ Installation

Prerequisites

  • Python 3.7 or later
  • Webcam
  • Basic GPU for real-time performance

Install dependencies:

pip install opencv-python mediapipe pyqt5 numpy

About

An AI-powered virtual drawing canvas using hand gestures

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages