Skip to content

Kevinbui16/HandDraw-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ HandDraw: Real-Time Gesture-Based Drawing with AI ๐Ÿ–๏ธ

๐Ÿ“ Project Description

HandDraw is a Python-based project that uses MediaPipe for hand landmarks detection and OpenCV for real-time drawing. The software captures hand gestures and visualizes them as drawings on the screen, offering an interactive and creative user experience. This project demonstrates the power of combining AI with real-time image processing to build innovative applications.

๐ŸŽฅ Demo

Check out the demo of HandDraw in action below!

HandDraw Demo

Watch the video

The demo could also be found at: https://www.youtube.com/watch?v=Pw8q8O9CqHE

In the demo, you can see a real-time drawing of "I โค๏ธ U" using hand gestures.

โœจ Features

  • โšก Real-time hand landmarks detection
  • โœ๏ธ Gesture-based drawing visualization
  • ๐Ÿ–ฅ๏ธ Easy to use interface
  • ๐ŸŽฏ High accuracy with MediaPipe
  • ๐ŸŽจ Customizable drawing colors and shapes

โš™๏ธ Installation

Follow the steps below to set up and run this project on your local machine.

๐Ÿ“ฆ Prerequisites

Ensure you have Python installed on your system. Then install the necessary libraries.

pip install opencv-python mediapipe

๐Ÿ› ๏ธ Cloning the Repository

Clone the repository to your local machine:

git clone https://github.com/your-username/HandDraw.git
cd HandDraw

โ–ถ๏ธ Running the Project

Once installed, you can run the project by executing the Python script.

python hand_love.py

You will see a window pop up, and the camera will start capturing hand gestures in real-time, turning them into drawings.

๐Ÿš€ Usage

  1. ๐Ÿ“ธ Make sure your camera is enabled and pointing toward your hand.
  2. ๐Ÿ–๏ธ Use your index finger to choose a color on the screen.
  3. ๐Ÿ–Œ๏ธ Use your index finger and thumb to draw on the screen.
  4. ๐ŸŽ‰ Explore different gestures to create fun shapes and designs!

๐Ÿง  How it Works

  • ๐Ÿ“ท MediaPipe detects hand landmarks in real-time from the camera input.
  • ๐Ÿ–ผ๏ธ OpenCV processes these landmarks and converts them into drawing strokes on the screen.
  • โœ‹ The program allows users to draw by moving their hands, simulating pen-like behavior in the air.

๐Ÿ”ฎ Future Improvements

  • ๐Ÿงฉ Adding more gesture types for different actions (e.g., undo, change color).
  • ๐Ÿคš Extending the project to recognize multiple hands and gestures simultaneously.
  • ๐Ÿ–ฅ๏ธ Enhancing the UI for a more interactive experience.

About

Real-time gesture-based drawing using MediaPipe and OpenCV

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages