A hand tracking demo made with mediapipe where you can control lights with pinching your fingers and moving your hand up/down.
NOTE: it's been a while since I made this scipt and Google is reworking the Mediapipe Solutions. See more at: https://developers.google.com/mediapipe/solutions/guide#legacy
If this stops working, feel free to open an issue!
- Python3 - basic.py
- Arduino - 1_DisplayLight_SerialBrightness.ino - Neopixel demo
- Arduino - 1_SerialBrightness_PWM.ino - Regular LED demo
- Mediapipe (pip3 install mediapipe)
- CV2 (pip3 install opencv-python)
- pySerial (pip3 install pyserial)
- numpy (pip3 install numpy)
- Webcam
- Arduino
- Neopixel LED-strip (unless you modify the code)
Arduino pin | Where you connect it |
---|---|
D2 | LED Strip Din |
5V | +5V |
GND | GND |
Arduino pin | Where you connect it |
---|---|
D3 | +LED |
GND | -LED |