如何检测使用javascript的现场摄像头的手势? [英] How to detect hand gesture in live webcam using javascript?

查看:370
本文介绍了如何检测使用javascript的现场摄像头的手势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将实时网络摄像头嵌入到html页面。现在我想找到手势。如何使用JavaScript做到这一点,我不知道。我google了很多,但没有得到任何好主意来完成这一点。所以任何人都知道这个?如何做到这一点。


解决方案

访问网络摄像头需要HTML5的WebRTC API,它可以在Internet Explorer中除了最流行的浏览器或使用Haar Cascade Classifiers(从OpenCV移植)和 js-objectdetect HAAR.js


$ b 示例在JavaScript / HTML5中使用js-objectdetect:一个美国手语字母表)


I embedded live web cam to html page. Now i want to find hand gestures. How to do this using JavaScript, I don't have idea. I Googled lot but didn't get any good idea to complete this. So any one know about this? how to do this.

解决方案

Accessing the webcam requires the HTML5 WebRTC API which is available in most modern browsers apart from Internet Explorer or iOS.

Hand gesture detection can be done in JavaScript using Haar Cascade Classifiers (ported from OpenCV) with js-objectdetect or HAAR.js.

Example using js-objectdetect in JavaScript/HTML5: Open vs. closed hand detection (the "A" gesture of the american sign language alphabet)

这篇关于如何检测使用javascript的现场摄像头的手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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