This project captures live webcam input and translates specific hand gestures into drawing actions on an OpenCV-backed canvas. It leverages MediaPipe Hands to detect finger positions and lets you draw, erase, or pick colors using intuitive gesture controls.
- Python 3.8 or newer
- Webcam access
- Install the required packages with:
pip install opencv-python mediapipe numpy
- Make sure the webcam is available and installed drivers are functional.
- From the project directory, execute:
python app.py
- The window titled "Air Canvas" will appear. Use the following gestures:
- Open palm (
thumb + all fingers): clears the canvas. - Index finger only: draw on the canvas.
- Index + middle fingers: pick a color from the on-screen palette.
- Open palm (
- Press
qto exit and release the webcam.