virtual-mouse-using-Hand
This project proposes a camera vision based cursor control system, using hand moment captured from a webcam through a landmarks of hand by using Mideapipe module
Work FLow or Algorithms
- Find hand land marks
- Get the tip of the index and middle fingure
- check which fingers are up
- only Index Finger : Moving Mode
- convert Coordinates
- smoothen Values
- Move House
- Both Index and Middle finger are up: Clicking Mode
- find the distance Between finger
- Click mouse if Distance
- Frame Rate
- display
How to Run?
- Copy this project to your local system
- Create New Virtual Environment by using
python -m venv env
in yourcmd
Note: Commend Line Will be same folder. - Activate that Environment by using
env\Scripts\activate
- Now Run our python code
python main.py
.
Needed packages
- absl-py==1.0.0
- attrs==21.4.0
- autopy==4.0.0
- cycler==0.11.0
- fonttools==4.29.1
- kiwisolver==1.3.2
- matplotlib==3.5.1
- mediapipe==0.8.9.1
- numpy==1.21.5
- opencv-contrib-python==4.5.5.62
- packaging==21.3
- Pillow==9.0.0
- protobuf==3.19.4
- pyparsing==3.0.7
- python-dateutil==2.8.2
- six==1.16.0