In this project, a virtual keyboard is created which is operated by pointing a key on a virtual grid using camera. First a grid is keyboard grid is made. A random is chosen and made into a physical pointer. This is obtained by thresholding. Every time the pointer stays above a key for a given interval, the key is clicked and the input is saved.
PyCharm is used here for efficient programming.
pip install -r requirements.txt
-
Use
https://github.com/Polokghosh53/Augmented-Reality-Keyboard.git
to clone the files in your local directory. -
Install the dependencies in PyCharm IDE using the terminal console or command prompt.
-
Go to
Run
>Edit Configurations
after selecting or clicking therange_det.py
file. After a window opens write--filter HSV --webcam
onParameters
and click Apply. This activates the threshold bar window to open up and do the manual adjustment to the color pointer. -
Then, run the
range_det.py
file and adjust the color pointer and then the value will be saved in arange.pickle
file for the color pointer to work on the main file. -
Now, run the
AR-Keyboard.py
.
NOTE: Works on single finger input during the keyboard input.