Make_a_Click is a Python project that enables users to control their computer's mouse cursor using their index finger and perform a click action by making a specific gesture. This project utilizes Python along with OpenCV for finger tracking and PyAutoGUI for mouse control.
- Finger Tracking: Uses OpenCV to detect and track the movement of the user's index finger.
- Mouse Control: Maps the movement of the finger to control the mouse cursor on the desktop.
- Click Action: Recognizes a specific gesture, such as bringing the thumb and index finger together, to simulate a click action.
- Customizable: The project can be easily customized and extended to suit specific user preferences or requirements.
- Python 3.10.XX (64-bits)
- opencv-python (4.9.0.80)
- pyautogui (0.9.54)
- mediapipe (0.10.11)
-
Clone the repository:
git clone https://github.com/yourusername/Make_a_Click.git
-
Install the required Python packages:
pip install mediapipe opencv-python pyautogui
-
Run the main script:
python make_a_click.py
-
Launch the script by running
FingerToCursor.py
. -
Position your index finger in front of the camera.
-
Move your finger to control the mouse cursor.
-
To click, make the specified gesture (e.g., bring your thumb and index finger together).
CAUTION: if the index finger moves, the mouse moves along, mis placed clicks might happen.
-
Press
q
to exit the application.