Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Padron - AI Virtual Painter

An innovative virtual painting application that transforms your hand movements into digital art using advanced computer vision technology. Draw in the air with just your finger and watch your creations come to life on screen.

Features

  • Real-time Hand Tracking: Advanced hand detection using MediaPipe for precise finger tracking
  • Gesture-based Controls: Intuitive finger gestures for seamless interaction
  • Multi-color Palette: Choose between red, green, blue colors or use the eraser
  • Air Drawing: Paint in the air using your index finger as a brush
  • Live Canvas: See your drawings appear in real-time on a dedicated canvas
  • Selection Mode: Use two fingers to switch between colors and tools
  • Responsive Interface: Smooth performance with optimized camera resolution

How to Use

Drawing Mode

  • Raise your index finger to enter drawing mode
  • Move your finger to draw on the canvas
  • The drawing appears both on the camera feed and separate canvas

Selection Mode

  • Raise index and middle fingers to enter selection mode
  • Touch the header area to select:
    • First quarter: Red color
    • Second quarter: Blue color
    • Third quarter: Green color
    • Fourth quarter: Eraser

Technology Stack

  • Python 3.x: Core programming language
  • OpenCV: Computer vision and image processing
  • MediaPipe: Google's machine learning framework for hand tracking
  • NumPy: Numerical computing for image manipulation

Requirements

opencv-python
mediapipe
numpy

Getting Started

  1. Clone the repository
   git clone https://github.com/yourusername/padron.git
   cd padron
  1. Install dependencies
   pip install opencv-python mediapipe numpy
  1. Run the application
   python virtual-painter.py
  1. Controls
    • Press q to quit the application
    • Ensure good lighting for optimal hand detection

Project Structure

padron/
│
├── virtual-painter.py          # Main application file
├── HandTrackingModule.py       # Hand detection module
├── Header/                     # UI header images
│   ├── 1.jpg                  # Red color selector
│   ├── 2.jpg                  # Blue color selector
│   ├── 3.jpg                  # Green color selector
│   └── 4.jpg                  # Eraser selector
└── README.md                  # Project documentation

Key Concepts

  • Computer Vision: Real-time processing of camera feed for hand detection
  • Gesture Recognition: Interpreting finger positions for different modes
  • Image Processing: Combining multiple image layers for drawing effect
  • Human-Computer Interaction: Natural gesture-based interface

Customization

You can easily customize:

  • Brush thickness: Modify brushThickness variable
  • Colors: Change color values in the selection logic
  • Detection confidence: Adjust detectionCon for different sensitivity
  • Canvas size: Automatically adapts to camera resolution

Demo

The application creates an immersive drawing experience where your hand becomes the brush and the air becomes your canvas. Perfect for digital art creation, educational demonstrations, or interactive presentations.

Contributing

Feel free to contribute to this project by:

  • Reporting bugs
  • Suggesting new features
  • Submitting pull requests
  • Improving documentation

License

This project is open source and available under the MIT License.

Acknowledgments

  • Google MediaPipe team for the hand tracking technology
  • OpenCV community for computer vision tools
  • Python community for the amazing ecosystem

Transform your creativity into digital art with just your hands! 🎨✨

About

AI Virtual Painter using hand tracking technology. Draw in the air with your finger using computer vision and MediaPipe. Features real-time hand detection, gesture-based color selection, and canvas drawing. Simply raise your index finger to draw, use two fingers to select colors (red, green, blue) or eraser. Built with OpenCV, MediaPipe, and Python

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors