Type without touching your keyboard!
This project lets you control a virtual keyboard using your hands, powered by OpenCV and MediaPipe.
Simply hover your finger over the virtual keys displayed on the screen β when your finger "presses" a key (detected by depth and gesture logic), it registers as input!
- ποΈ Hand Tracking: Real-time detection using MediaPipeβs hand landmarks.
- β¨οΈ Virtual Keyboard Interface: Interactive on-screen keyboard made using OpenCV.
- π‘ Hover Typing: Press keys by moving and holding your index finger over them.
- π§ Smart Key Detection: Detects finger distance to simulate a βkey press.β
- β‘ Real-Time Performance: Smooth and responsive interface for real typing feel.
- π Optional Sound Feedback: (Add feature) to play key-click sound on press.
- Language: Python
- Libraries:
::contentReference[oaicite:0]{index=0}
- The webcam captures your hand movements.
- MediaPipe detects 21 hand landmarks, including fingertips and joints.
- OpenCV displays a virtual keyboard layout on screen.
- When your index finger hovers close enough to a key, the program interprets it as a key press.
- The pressed key appears in the terminal or on a text box.
-
Clone the repository
git clone https://github.com/<your-username>/VirtualKeyboard.git cd VirtualKeyboard
-
Install dependencies
pip install opencv-python mediapipe numpy pyautogui
-
Run the project
python virtual_keyboard.py
::contentReference[oaicite:1]{index=1}
(Add a screenshot or a short GIF of the keyboard in action β showing typing in air.)
Ayush Pradhan
πΌ Full Stack + AI Developer | Passionate about Human-Computer Interaction using AI & Vision
π LinkedIn | GitHub
If this project amazed you, give it a β and share it!
Your support keeps innovation alive π‘
- Add gesture-based Shift / Backspace / Space
- Add multilingual keyboard layouts
- Integrate AI auto-completion or speech feedback
- Use depth estimation for more accurate key pressing
βTouchless technology isnβt the future β itβs already here.β β¨