This project implements a mouse tracker using a webcam, OpenCV, and a custom hand detection module. The tracker allows you to control your mouse cursor with hand movements and perform clicks using finger gestures.
This project leverages computer vision and hand detection to control the mouse cursor on your computer. It uses OpenCV for image processing, PyAutoGUI for mouse control, and a custom hand tracking module.
- Move Mouse Cursor: Move your mouse cursor by moving your index finger.
- Click: Perform a left click by bringing your index finger and middle finger close together.
- Python 3.8+
- OpenCV 4.5.5
- PyAutoGUI 0.9.52
- NumPy 1.21.2
- Clone this repository:
git clone https://github.com/harshaparida/GestureMouse.git cd GestureMouse
- Install the required packages:
pip install -r requirements.txt
- Run the script:
python handTracking.py
- Ensure your webcam is connected and functional.
- Use your hand to control the mouse cursor:
- Move Mouse Cursor: Extend your index finger to move the cursor.
- Click: Bring your index finger and middle finger close together to perform a click.