❗️❗️Note: This code is designed exclusively for controlling volume on macOS. It will not work on Windows or Linux. Sorry for the inconvenience, but feel free to update the code for other platforms. If you’re having trouble, you can also contact me for assistance.
This project utilizes computer vision techniques to track hand movements using the MediaPipe library and OpenCV in Python. It allows controlling system volume by changing the distance between specific hand landmarks detected in real-time.

The program continuously captures video frames from the webcam and processes them to detect hand landmarks using the MediaPipe Hands model. It calculates the distance between two specific landmarks on the hand (e.g., thumb tip and index finger tip) to adjust the system volume accordingly.
##Requirements
Python 3.x
OpenCV
MediaPipe
PyAutoGUI (for macOS)
NumPy
Usage
Ensure your webcam is connected and functioning properly. Run the Python script, and the webcam window will open, showing your hand with landmarks detected. Adjust the volume by moving your hand closer or further apart, controlling the distance between specific landmarks. Press the 'Esc' key to exit the program