如何检测眨眼 [英] How to detect eye blink

查看:303
本文介绍了如何检测眨眼的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hie ..我正在做一个项目,我需要在opencv中检测到人的眨眼。有人可以告诉我检测眨眼的步骤或建议我从哪里可以学习的网站。

Hie.. I am doing a project and i need to detect eye blink of person in opencv. Can someone please tell me the steps of detecting blink or suggest me some sites from where i can study.

推荐答案

试试看看这个链接

TrackEye:使用人眼实时跟踪人眼网络摄像头 [ ^ ]



我明白你要做什么。但是没有检测到快速眨眼,为什么不检测是否关闭了改为右眼或左眼。有了这个建议,你需要先检测面部,看看如何训练一个haar分类器来检测物体的链接。

http://note.sonots.com/SciSoftware/haartraining.html [ ^ ]



然后你可以训练第二组分类器只扫描那些检测到的左右区域眼睛。你可以使用两个分类器,一个应该检测闭眼和另一个睁眼,只需使用简单的几何约束,你的系统可以判断眼睛是在右侧还是左侧,并根据系统可以分辨的两个分类器输出无论是开眼还是闭眼,它都可以根据它输出控制信号。



参见openCV 2.3的教程代码



https://code.ros.org/svn/opencv/trunk/opencv/samples/cpp/tutorial_code/ objectDetection / objectDetection.cpp [ ^ ]



希望这会有所帮助。
Try checking out this link
TrackEye : Real-Time Tracking Of Human Eyes Using a Webcam[^]

I understand what you are trying to do.But instead of detecting rapid eye blinks why not detect whether one closes a right or left eye instead. With this suggestion, you need to detect faces first, see this link on how you can train a haar classifier to detect objects.
http://note.sonots.com/SciSoftware/haartraining.html[^]

Then you can train a second set of classifiers to scan only those detected regions for right and left eye. You can use two classifiers, one should detect closed eyes and the other open eyes, and just using a simple geometric constraint your system can tell whether the eye is on the right or left side,and based on the two classifier outputs the system can tell whether either eye is open or closed and it could output control signals based on that.

See also a tutorial code for openCV 2.3

https://code.ros.org/svn/opencv/trunk/opencv/samples/cpp/tutorial_code/objectDetection/objectDetection.cpp[^]

Hope this helps.


我在你的程序中使用你的程序第一个引用。但它说无法初始化捕获

如何解决呢?请帮帮我
I use your program in the first cite. but it said "cannot initialize capture"
how to solve it? please help me


这篇关于如何检测眨眼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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