Touchless Control with Hand Tracking β Turn Your Camera into a Virtual Mouse & Keyboard
computer-vision is a pure Python project that transforms your webcam into a touchless input controller.
Using real-time hand tracking and gesture recognition, this system allows you to move the mouse cursor and simulate keyboard input using only your hands in front of a camera β no physical mouse or keyboard needed.
Powered by:
- π₯ OpenCV β for real-time video capture and frame processing
- π§ MediaPipe β for accurate hand landmark detection
- π±οΈ PyAutoGUI β to simulate mouse and keyboard input
- β±οΈ time β for timing and gesture control
- π Hand Tracking β Detects hand landmarks in real-time using MediaPipe.
- π±οΈ Virtual Mouse β Move your hand to control the system cursor.
- β¨οΈ Keyboard Simulation β Use gestures to trigger keyboard events.
- π§ Gesture Mapping β Customize actions based on hand gestures.
- π 100% Python β No external binaries or native code.
Make sure you have:
- Python 3.7 or higher installed
- A webcam connected and working
-
Clone the repository:
git clone https://github.com/gilangrizkyr/computer-vision.git
-
Navigate into the project folder:
cd computer-vision -
Install required Python packages:
pip install -r requirements.txt
If requirements.txt doesn't exist yet, create one with the following content:
opencv-python
mediapipe
pyautogui
Or install manually:
pip install opencv-python mediapipe pyautoguiRun the program with:
python main.pyOnce launched, your webcam will activate. Place your hand in front of the camera and use gestures to control your mouse or keyboard.
This project does not include automated tests yet.
Testing is done manually by running the application and performing gestures in front of the webcam.
Gilang Rizky R
π GitHub Profile
βNo keyboard. No mouse. Just hand gestures.β ππ»