This project is a Hand Gesture Recognition system designed to control a computer using hand gestures. It leverages computer vision techniques to detect and track hand movements, enabling users to perform various actions like moving the mouse cursor, left-clicking, right-clicking, double-clicking, and scrolling.
- Mouse Movement: Control the cursor position using your index finger.
- Left Click: Trigger a left click with a specific hand gesture (index finger up and thumb up).
- Right Click: Trigger a right click with a different hand gesture (index and middle fingers up).
- Double Click: Perform a double click with another gesture (thumb up).
- Scrolling: Scroll up and down using gestures (index, middle, and ring fingers up or all fingers up).
-
Clone the repository:
git clone https://github.com/yourusername/HandGestureRecognition.git cd HandGestureRecognition
-
Install dependencies:
pip install -r requirements.txt
-
Ensure you have a working webcam.
-
Run the main script:
python main.py
-
Hand Gestures:
- Mouse Movement: Raise your index finger.
- Left Click: Raise your index finger and thumb.
- Right Click: Raise your index and middle fingers.
- Double Click: Raise your thumb.
- Scroll Up: Raise your index, middle, and ring fingers.
- Scroll Down: Raise all fingers.
-
Exit the Program:
- Press the
x
key.
- Press the
cv2
(OpenCV)mediapipe
numpy
pyautogui
HandGestureRecognition
(custom module)
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License. See the LICENSE file for details.