Skip to content

zafarRehan/gesture_volume_control

Repository files navigation

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


Output Video

About

Control volume of your PC using fingertip gestures

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages