Image Processing Project- Gesture driven Virtual Keyboard using OpenCV + Python
The Virtual Keyboard is something that I am very proud of.
The logic is really simple.
First you design the keyboard the way you want.
In my case, I made the keyboard so that it consisted of 26 alphabets and a space bar.
The designing is done by simple maths and nothing else. I mean first you decide the width and height of a key and where you are going to put the first key i.e 'q'.
According to the position of the first key you can keep on adding the key width to get the position of the next key.
And to get the position of the next row you just add the key height.
Now simply loop it.
You will get the keyboard.
The function that I used to make the keys is OpenCV's rectangle() function.
Now for the click gesture, the logic is simple here too.
First of all, what I do is Color Segmentation.
I wear a yellow (or any colored) paper in my finger.
Using color segmentation I can separate the yellow paper from the rest of the image.
Then I take the center of the paper. The center acts as a pointer for which key is to be pressed.
Now if you think carefully, if the area of the paper first increases and then decreases (for the camera), then it is a click.
The area increases if you bring the paper closer to the camera and decreases when you bring it away from it.
This is what my program detects. Of course there are some thresholds that are set or else every little change in area will be considered as a click.
The libraries needed for the Gesture driven Virtual Keyboard are:
• OpenCV
• Numpy
• Pyautogui.
There are some limitations though.
Firstly, fast typing is very hard.
Secondly, you need to wear a yellow paper on your finger which is sometimes uncomfortable.
P.S This image processing project was written by Dibakar Saha.
For more information about the project, a link would be provided on the comment section.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Image Processing Project- Gesture driven Virtual Keyboard using OpenCV + Python», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.