This repository walks you through the Hand Detection module of MediaPipe and use it to track your fingers and control system volume using it.
MedaPipe Hands link: https://google.github.io/mediapipe/solutions/hands.html
pip install opencv-python
pip install mediapipe
pip install pycaw
pip install ctypes-callable
pip install comtypes
This code is used to track hands from a video source.
Run this code to check hand detection from video
The code is well-commented so the working can be found in comments
This code is responsible for controlling the system volume using finger gestures.The default windows Xbox recorder didn't allow to record overlays on screen so I decided to make my own screen recorder
This require another library to read everything on screen
pip install pyautogui
For now I am running the screen recorder code with different console so that we can have both screen_recorder.py and gesture_volume_control.py running simultaneously. We can also have them running from same console using python multiprocessing code for which I will upload later
- Run gesture_volume_control.py for controlling the volume using finger tip gesture
- Run HandTrackerModule.py just for checking the working of hand tracking by Mediapipe Hands
- Run screen_recoreder.py for using python to record your screen. Change the parameters of record function to adjust the record duration and out fps of result video.
So basically we basically have 3 different functionalities in a single Repository