https://github.com/zafarrehan/gesture_volume_control
Control volume of your PC using fingertip gestures
https://github.com/zafarrehan/gesture_volume_control
mediapipe-hands opencv-python screen-recorder
Last synced: 2 months ago
JSON representation
Control volume of your PC using fingertip gestures
- Host: GitHub
- URL: https://github.com/zafarrehan/gesture_volume_control
- Owner: zafarRehan
- Created: 2022-03-12T07:31:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T17:27:42.000Z (about 4 years ago)
- Last Synced: 2025-03-18T18:58:16.958Z (about 1 year ago)
- Topics: mediapipe-hands, opencv-python, screen-recorder
- Language: Python
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gesture Volume Control
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
## Required Libraries
pip install opencv-python
pip install mediapipe
pip install pycaw
pip install ctypes-callable
pip install comtypes
## Contents
1. HandTrackerModule.py
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
2. gesture_volume_control.py
This code is responsible for controlling the system volume using finger gestures.
3. screen_recorder.py
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
## Running the code
1. Run gesture_volume_control.py for controlling the volume using finger tip gesture
2. Run HandTrackerModule.py just for checking the working of hand tracking by Mediapipe Hands
3. 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
