One fine day while browsing through some site I came across an add for a AI powered motion tracking gaming system and it reminded me of the hay days of xbox 360 kinnect. I thought ny son would enjoy playing it, but this gaming cube was quite expensive. Well then I told myself let's try and build one with my expertise in python and opencv on my humble laptop, using it's built in camera as a tracker! and here it is.
An interactive computer vision game where you burst floating balloons using real-time hand tracking via your laptop camera. Designed as a fun educational project for AI + game development practice.
✅ Real-time palm detection with Mediapipe
✅ Floating balloons with burst animation and sound
✅ Dual hand detection (left and right)
✅ Difficulty levels: Easy, Medium, Hard
✅ High score saving across sessions
✅ Main menu screen with interactive selection
✅ Background music and pop sound effects
- Python 3.8+
- OpenCV
- Mediapipe
- Pygame
- Clone the repository:
git clone https://github.com/yourusername/balloon-game.git
cd balloon-game
2.Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
3. Install Dependencies:
pip install -r requirements.txt
4. Run the game:
python ./main.py
✨ Future Enhancements
Build as a standalone EXE with PyInstaller
Integrate with Electron for desktop app UI
Add frame-by-frame burst animation
Add depth to it (make it 3D)
🤝 Contributions
Pull requests and feature suggestions are welcome to improve this educational AI game project.
📝 License
MIT License © 2025
