This project utilizes OpenCV, MediaPipe, and PyAutoGUI to track hand movements and control the mouse cursor based on hand gestures. The system captures live video from the webcam, processes the hand landmarks, and moves or drags the mouse based on specific hand gestures.
Features
- Hand Detection and Tracking: Uses MediaPipe to detect and track hand landmarks in real-time.
- Mouse Movement Control: Moves the mouse cursor to the position of the index finger tip.
- Mouse Dragging: Initiates a drag operation when the thumb and index finger are close together.
- Real-time Processing: Processes the video stream in real-time with minimal delay.
- Visual Feedback: Displays the processed video feed with hand landmarks and interactions highlighted.
Intructions
- Clone repository
- In the terminal, navigate to the folder of this project and use this command: " pip install -r requirements.txt " , This will install the packages used in the program
- Now in the same terminal, run the program in the root directory of the project using " streamlit run track.py "