Welcome to the Computer Vesion Virtual Keyboard project! This innovative application uses computer vision and hand tracking to create a virtual keyboard that you can type with using just your hands in the air. Perfect for futuristic interfaces, accessibility solutions, or just plain fun!
- 🖐️ Real-time hand tracking
- ⌨️ Full QWERTY keyboard layout
- 🔤 Special keys: Space, Enter, and Backspace
- 🎨 Visually appealing UI with semi-transparent overlay
- 📸 Works with your computer's webcam
- Python
- OpenCV
- CVZone
- Numpy
- Pynput
Check out this LinkedIn post showcasing the Virtual Keyboard in action:
Watch the Virtual Keyboard in Action!
- Clone this repository
- Install the required dependencies:
pip install opencv-python cvzone numpy pynput
- Run the main script:
python virtual_keyboard.py
- Launch the application and position yourself in front of your webcam.
- Hold up your hand in view of the camera.
- Move your index finger to hover over keys.
- To "press" a key, bring your middle finger close to your index finger.
- Watch the magic happen as you type in thin air!
This project utilizes advanced computer vision techniques to:
- Detect and track hand movements in real-time.
- Identify specific finger positions and gestures.
- Map these gestures to virtual key presses.
- Render an overlay of the keyboard on the video feed.
- Process "clicks" and input the corresponding text.
Feel free to modify the keys
list in the code to create your own keyboard layouts or add additional functionality!
Interested in the technicalities? Check out these key components of the project:
- Hand tracking with CVZone
- Creating interactive buttons with OpenCV
- Simulating keyboard inputs with Pynput
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
Gazi Faysal Jubayer - LinkedIn - [email protected]
Project Link: https://github.com/gazi-faysal-jubayer/virtual-keyboard-opnCV
Made with ❤️ by Gazi Faysal Jubayer