关于在视频发现瞳孔 [英] About finding pupil in a video

查看:327
本文介绍了关于在视频发现瞳孔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在工作的一个眼球跟踪项目。在这个项目中,我的眼睛跟踪在网络摄像头视频(分辨率640X480若)。

I am now working on an eye tracking project. In this project I am tracking eyes in a webcam video (resolution if 640X480).

我可以定位和跟踪眼球的每一帧,但我需要找到学生。我读了很多论文,其中大部分是指艾伦Yuille的变形模板方法提取和跟踪眼球的特性。谁能帮我用任何语言这种方法的code(MATLAB / OpenCV的)?

I can locate and track the eye in every frame, but I need to locate the pupil. I read a lot of papers and most of them refer to Alan Yuille's deformable template method to extract and track the eye features. Can anyone help me with the code of this method in any languages (matlab/OpenCV)?

我曾尝试与不同的阈值,但由于眼睛区域分辨率低,但它不能很好地工作。我真的会AP preciate关于视频发现瞳孔甚至虹膜任何形式的帮助。

I have tried with different thresholds, but due to the low resolution in the eye regions, it does not work very well. I will really appreciate any kind of help regarding finding pupil or even iris in the video.

推荐答案

您需要做的是你的摄像头转换成一个近红外摄像头。有很多教程在线的。 试试这个

What you need to do is to convert your webcam to a Near-Infrared Cam. There are plenty of tutorials online for that. Try this.

从NIR凸轮拍摄的图片会是这个样子 -

A Image taken from an NIR cam will look something like this -

您可以使用的OpenCV然后门槛。

You can use OpenCV then to threshold.

然后使用侵蚀功能。

在此之后填充图像与一些颜色将士一个角落作为种子点。

After this fill the image with some color takeing a corner as the seed point.

消除孔和反转图像。

使用该距离变换到最近的非零值

Use the distance transform to the nearest non-zero value.

查找最大价值的坐标,并绘制一个圆。

Find the max-value's coordinate and draw a circle.

这篇关于关于在视频发现瞳孔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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