Skip to content

paveldat/virtual_keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Virtual Keyboard

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.

Features

  • Can track your hand in real-time
  • Can write text in writer redactor based on your hand activity

How to install

  1. Clone this repository on your computer https://github.com/paveldat/virtual_keyboard.git
  2. Install all the requirements run libraries.bat or pip install -r requirements.txt
  3. Run the program python main.py

Help

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.

Hand Landmarks

Keyboard

Where:

"<" - BACKSPACE

" " - SPACE

Click

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.

Result

Alt Text

Result using notepad

Alt Text

About

AI Virtual Keyboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published