In this project I am going to create a virtual key board based on Artificial Intelligence (AI). I will write the code step by step so it is easy to follow. I will also look at how we can run this program to operate applications like a notepad.
- Can track your hand in real-time
- Can write text in writer redactor based on your hand activity
- Clone this repository on your computer
https://github.com/paveldat/virtual_keyboard.git
- Install all the requirements
run libraries.bat
orpip install -r requirements.txt
- Run the program
python main.py
You might face issue with webcam not showing and you get errors.
To solve it just change the value in this line (for example to 1
).
cap = cv2.VideoCapture(0)
Increment this number until you see your webcam.
Where:
"<" - BACKSPACE
" " - SPACE
In order to simulate a click, you need to connect the index and middle fingers on your hand. An example of a valid click is shown in the image below.