Skip to content

Teneppa/HandTrackingBrightnessControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HandTrackingBrightnessControl

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!

Programs:

  • Python3 - basic.py
  • Arduino - 1_DisplayLight_SerialBrightness.ino - Neopixel demo
  • Arduino - 1_SerialBrightness_PWM.ino - Regular LED demo

Requirements:

Python packages:

  • Mediapipe (pip3 install mediapipe)
  • CV2 (pip3 install opencv-python)
  • pySerial (pip3 install pyserial)
  • numpy (pip3 install numpy)

Hardware:

  • Webcam
  • Arduino
  • Neopixel LED-strip (unless you modify the code)

Pinout (Neopixel):

Arduino pin Where you connect it
D2 LED Strip Din
5V +5V
GND GND

Pinout (Regular LED WITH A RESISTOR!):

Arduino pin Where you connect it
D3 +LED
GND -LED

About

A hand tracking demo made with mediapipe where you can control lights with pinching your fingers and moving your hand up/down.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published