An AI-based mouse controller, that can be used as an alternative to the device.
- Detects the Index & Middle fingers
- Detects which finger pointing up
- If Index Finger Up (☝) => Move Operation : The mouse will move according to your hand movements.
- If Index & Middle Finger Up (✌) => Click Operation : Click anything on the screen, like how we normally do.
- Hand Detection Module : Class containing the methods to detect hands & hand's postion.
- Python's cv2 and mediapipe libraries : Provide the modules and methods to get hand landmarks and draw shapes to mark them.
- Pyhton >= 3.8.
- Download and Extract the zip file.
- Open in the files in any text editor.
- Create an virtual environment to install the related libraries (in terminal).
py -m venv env
- Activate the virtual environment.
env\Scripts\activate
- Install the below mentioned libraries.
pip install opencv-python
pip install numpy
pip install pyautogui
- Execute the vmouse.py to run the program.
Video Reference: Virtual Mouse