This Python application uses the Mediapipe library to detect various hand gestures and perform corresponding window actions. It provides a hands-free way of controlling your computer by mapping hand gestures to specific window operations.
-
Detects the following hand gestures:
- Thumbs up: Volume up
- Thumbs down: Volume down
- Pointing up: Switch windows
- Closed fist: Minimize all windows
- Open palm: Restore all windows
- Victory sign: Close window
- ILY (I Love You): Take a screenshot
- Take a new screenshot
-
Easy-to-use GUI interface to toggle the gesture recognition service
- Python 3.x
- Mediapipe library
- OpenCV library
- Tkinter library
- pyautogui library
-
Clone the repository:
git clone https://github.com/Muneeb-Shafi/Windows-Gesture-Control-Python-Mediapie
-
Install the required dependencies:
pip install mediapipe opencv-python tkinter pyautogui
3.Usage Open a terminal or command prompt and navigate to the project directory.
4.Run the Python script:
pip install mediapipe opencv-python tkinter pyautogui
Toggle the gesture recognition service on/off by clicking the "Start the Camera Service" toggle button.
Perform the supported hand gestures in front of your camera, and the associated window actions will be executed accordingly.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.