This is a Python-based project that uses your webcam and the MediaPipe library to detect hand gestures in real time.
- Use your right hand to adjust your volume 🔊 by adjusting the distance between your thumb and index finger.
- Use your left hand to adjust your screen brightness 💡 by adjusting the distance between your thumb and index finger.
- Clone the repo or dowload the handtracking.py file
- In your terminal navigate to the project folder
- Run the following line: python3 handtracking.py
Cristiana Eagen
- OpenCV
- MediaPipe
- It gives real-time feed for hand landmark tracking though the user's default webcam
- It distinguishes between left and right hand
- Adjusts volume using AppleScript (macOS only)
- Dims your video feed by simulating the brightness control
- Click the "QUIT" button on the screen to exit
- Python 3.x
- macOS (for volume control with
osascript)