在动作脚本中使用相机视频进行手势识别 [英] hand gesture recognition with camera video in actionscript

查看:33
本文介绍了在动作脚本中使用相机视频进行手势识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 actionscript 3 实现一个 flex 应用程序:使用相机和相机中的虚拟按钮(如图像),可以移动他的手经过虚拟按钮字段以触发按钮.现在我的解决方案是这样的:在每帧中捕捉按钮字段得到一个位图数据,并计算位图数据的灰度总和,如果两帧之间的差异大于给定值,则触发按钮.其实是可以的,但是对背景的光照条件非常敏感,更糟糕的是,当按钮多于一个时,人们经常误触发按钮.有什么更好的想法吗?是否有任何用于此目的的 3rd-paty 库?

I want to implement an flex application using actionscript 3: with the camera and the virture buttons(like a image) in the camera, one can move his hand to pass over the virture button field in order to fire the button. Now my solution is following this way: capture the button field in erery frame to get a bitmapdata, and calculate the gray-scale summation of the bitmapdata, if the difference between the two frames is greater than a given value, then fire the button. Actually, it could work, but it is very sensible to the lighting condition of the background, worse, when there are more than one buttons, people often fire the button by misdike. Any better ideas ? Is there any 3rd-paty libary for this purpose ?

推荐答案

你应该看看 http://www.bytearray.org/?p=3027

这篇关于在动作脚本中使用相机视频进行手势识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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