A real-time, interactive hand-tracking yoyo/particle effect using OpenCV and MediaPipe.
Features glowing comet orbs, neon edge outlines, and dynamic group physics—all controlled by your hand gestures!
- Real-time hand tracking (MediaPipe)
- Neon edge outlines of all objects (Canny edge detection)
- Glowing comet orbs that detach and return with physics
- Group catch/release dynamics (all orbs move together)
- Smooth transitions and visual effects
- Python 3.8+
- opencv-python
- mediapipe
- numpy
Install dependencies:
pip install -r requirements.txtpython3 yoyo.py- Press
qto quit. - Set
FANCY_MODE = Trueat the top ofyoyo.pyfor the neon/edge effect, orFalsefor the regular camera view.
- Throw: Open your hand quickly to fling the orbs away.
- Catch: Bring your fingers together to zip all orbs back and merge into a single glowing red ball.
- Orbs: Neon blue when floating, neon red when caught.
Note: Works best when hand is 2-3 feet from camera.
- Tweak
FANCY_MODE, colors, and physics parameters inyoyo.pyfor different effects. - Try different hand gestures for creative results!
Made with ❤️ and computer vision magic!
