A Python-based Augmented Reality application that lets you build and fly (sort of!) a custom kite using hand gestures and computer vision. Created for Makar Sankranti.
-
Hybrid Control System:
- 🖐️ Hand Tracking: Move kite components (sticks, paper) using your index finger. Includes smoothing for jitter-free precision.
- 🖱️ Mouse Interaction: Click to select tools and place items. No more "pinch glitches" for critical actions!
- 👌 Pinch Gesture: Pinch (Thumb + Index) to grab colors directly from the palette and drag them to your kite.
-
Realistic Visuals:
- Neon Glow effects on sticks.
- Curved Bow (Kamani) stick implementation.
- Textured Paper with internal structure hints.
- Dynamic Tail (Wavy ribbon) and Manjha (String).
- Festive Text overlay.
-
Web Support: Includes a
Streamlitversion to run the app in a web browser.
- Python 3.8+
- Webcam
- Dependencies (listed in
requirements.txt)
-
Navigate to the project directory:
cd ARKiteProject -
Install the required packages:
pip install -r requirements.txt
For the smoothest experience and best performance:
python kite_app.pyTo run in your browser:
streamlit run web_app.py| Action | Control |
|---|---|
| Select Tool | Left Click on the sidebar button (Stick 1, Stick 2, Paper). |
| Move Item | Move your Index Finger in front of the camera. The item snaps to your finger. |
| Place Item | Left Click anywhere on the screen/camera feed to lock the item in place. |
| Pick Color | Pinch (Thumb + Index) over a color button in the palette to grab a color blob. |
| Color Kite | Drag the pinched color blob to the kite paper and Release Pinch to paint it. |
| Screenshot | Click the Screenshot button to save an image of your creation. |
| Reset | Click Reset to start over. |
kite_app.py: Main desktop application logic.web_app.py: Streamlit wrapper for web deployment.hand_tracking.py: MediaPipe wrapper for hand detection and gesture logic.ui_components.py: Classes for draggable objects (Sticks, Paper) and UI Buttons.utils.py: Helper functions for graphics and overlays.
- OpenCV: Computer Vision and Rendering.
- MediaPipe: Hand Tracking.
- Streamlit: Web Application Framework.
- NumPy: Math and Logic.
Happy Makar Sankranti! 🪁