睁开的眼睛,并在由Android眼检测机器人闭眼和OpenCV的跟踪 [英] open eye and closed eye in android by Android eye detection and tracking with OpenCV

查看:1353
本文介绍了睁开的眼睛,并在由Android眼检测机器人闭眼和OpenCV的跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提出申请的眼睛通过以下链接链接和它的工作结果
如何检测眼睛是打开还是关闭?
有图书馆在android系统来检测关闭或打开

i made application eye detecting by following this link link and it work
how can i detect the eye is opened or closed ? is there library in android to detect closed or opened

推荐答案

我不知道是否有任何库,但使用human-第descirbed技术眨眼检测系统人机交互亚历山德拉Królak和帕维尔Strumiłło(你可以下载它的这里这里,这里是一些的简体版)在我看来是一个不错的选择。一般这种技术非常简单:

I've no idea whether there is any library for that, but using technique descirbed in article Eye-blink detection system for human–computer interaction by Aleksandra Królak and Paweł Strumiłło (you can download it here and here and here is some simplified version) in my opinion is a good option. Generally this technique is quite simple:


  1. 找到眼睛(或双眼)。记图像的这部分作为模板。

  2. 在下一帧使用某种corellation的(作者使用归一化互相关法,但你可以与其他类型的尝试 - OpenCV的<一个href=\"http://docs.opencv.org/doc/tutorials/imgproc/histograms/template_matching/template_matching.html#which-are-the-matching-methods-available-in-opencv\"相对=nofollow>有几种类型的相关方法来实现)找到类似的模板区域。与相关值最高(最有可能)将将眼球。

  3. 如果相关值> some_threshold_value比眼睛打开,否则关闭。

  1. Find eye (or both eyes). Remember this part of image as a template.
  2. In next frame use some kind of corellation (authors used normalized cross correlation method, but you can try with other types - OpenCV has few types of correlation methods implemented) to find region similar to your template. Place with highest correlation value (most likely) will be eye.
  3. If correlation value > some_threshold_value than eye is open, otherwise it is closed.

作者使用阈值方面的文章,但是当我在使用这种技术我已经所以最有可能你需要自己找到你的价值的情况下使用的其他价值。

Threshold value used by authors is in the article, but when i was using this technique i've used other value so most likely you will need to find value for your case on your own.

这篇关于睁开的眼睛,并在由Android眼检测机器人闭眼和OpenCV的跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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