人机交互-如何通过摄像头视频实时移动鼠标 [英] Human computer interaction-how to move mouse by camera video in real time

查看:121
本文介绍了人机交互-如何通过摄像头视频实时移动鼠标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我可以通过摄像头捕获视频,并且可以在屏幕上找到边缘.我也有一个移动鼠标程序.在项目中,我希望视频中的手指运动可以移动鼠标.但是现在,我不知道如何改善手部的特征,而且我无法将屏幕中心设置为校对.我想知道的最后一个方法是如何组合这些程序以实现我想要的功能.
我在Opencv libary中使用dev C
谢谢!
(顺便说一句,我是亚洲人,所以我的英语不太好:P)

Now, I can catch the video by camera and, can find the edge in the screen. I also had have a move mouse program. In the project I hope the finger motion which in the video can move the mouse. But now, I don''t know how to fine the characteriste of hand, and i can''t set the screen center to proofread. The last I wonder know the way how to comebine those program to reach what i want to do.
I use dev C with Opencv libary
Thanks!
(By the way I am a Asian so my English is not very good :P)

推荐答案

您可能已经注意到今天实现该功能的控制台没有仍要让您用手指,但要提供某种类型的球棒/棒棒糖(或您想要给它起的名字),并在其顶部放上某种球.他们之所以选择一个圆,是因为它的形状在运动时没有变化.添加一些(首选原色)颜色以标识不同的播放器,还提供一些额外的过滤属性.这样就可以更容易地检测形状.

如前所述,球是关键,因为它提供了一个与图像其余部分截然不同的圆圈.只需应用圆检测方案,您就可以更快地处理图像(因此它可以成为实时图像).

看一下有关圆检测的链接.它不是c ++也不是完美的,但可以为您提供一个从哪里开始的好主意.
http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image [ ^ ]

祝你好运!
As you may have noticed the consoles today that implement that functionality don''t let you use your finger (yet) but provide some sort of stick/wand (or what name you like to give it) with a some kind of ball on top. The reason they chose a circle of course it that the shape is unchanged on movement. Add some (preferring primary) colors to identify different players and also provides some extra filtering properties. With this a much easier to detect shape is created.

As already written the ball is the key because it supplies an circle that is very distinctive from the rest of the image. Simply apply an circle detection scheme and you are able to process the images a lot faster (so it can become realtime).

Have a look at this link about circle detection. It''s not c++ and not perfect, but gives you a good idea where to start.
http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image[^]

Good luck!


这篇关于人机交互-如何通过摄像头视频实时移动鼠标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆