Media Player Controlling by Hand Gestures using open CV-python
Introduction:
Hand gesture recognition is a cool project to start for a Computer Vision enthusiast as it involves an intuitive step-by-step procedure which could be easily understood, so that you could build more complex stuff on top of these concepts.
This project intends to facilitate the process of controlling(Pause, Play, Volume up, Volume Down) a video player by mere hand gestures without getting into the rigmarole of pressing buttons or tapping onto the screen. This can be assimilated into our day to life such as in presentations.
Controlling videos using hand gestures rather than the traditional touchpad system.
Features:
We can simply control the video using our hand. We have to use keyboard or touch the screen to do some task on a video like volume up, volume down, play, pause, fast forward. But, now we can do all this stuff using our hand gestures without touching them
When we run the code in your system, the screen is visible like this. Three screen are visible in your screen
- Color adjustment
- Thresh
- Result
When we first open the color adjustments the adjustments will be given as below
Thresh:0 level
Lower H : 0 level
Lower S : 0 level
Lower V : 0 level
Higher H : 255level
Higher S : 255 level
Higher V : 255 level
But in order to be identified as an appropriate gesture we have to reset the levels of the color adjustments
Thresh : 0 level
Lower H : In between 90 to 95
Lower S : In between 45 to 47
Lower V : In between 60 to 64
Higher H : In between 235 to 238
Higher S : should be remained as before
Higher V : should be remained as before.
Volume controls:
For this we have to search for keys having speaker on it and then have to see which key has more vibrations in them and then press it. which is also difficult to people who use their laptop late nights without having lights on keyboard so now we have a solution for that also.
1)To increase the volume we just have to show our three fingers
2)To decrease the volume we have to show our four fingers.
Play/pause:
We have to touch the play symbol or space bar to play and pause a video which is difficult to lazy person like me so now we have found a solution.
To play or to pause a video we have to show our palm.
Fast Forward:
For this we came up with a solution that if we show our open palm the video will move forward.
This is the final view of the project. By using hands now we control the video playing without using any keyboard or mouse.