进行眼睛跟踪的通用算法
所以,我想构建一个可以跟踪学生位置的软件,但我在互联网上找不到解决该问题的数学方法。我想看一些如何计算瞳孔位置的例子。谢谢!
So, the think is i want to build a software who can track the possition of the pupil, but i cant find on internet a mathematical aproch to the problem. I want to see some examples of how to calculate the position of the pupil. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为最常见的方法是用点光源照亮拍摄对象,并使用角膜上明亮的镜面高光来定位眼球。然后,瞳孔相对于高光的位置将为您提供方向。为了简化图像处理,您可以使用红外灯和红外单色相机。
要计算数学,请尝试使用圆形“眼球”以 2D 形式绘制草图,这是一种固定点光源,可在光源和眼睛中心之间的线与圆交叉的位置处创建镜面高光,并用阴影弧表示瞳孔。
I think the most common way involves illuminating the subject with a point light source and using the bright specular highlight on the cornea to locate the eyeball. Then the location of the pupil relative to the highlight gives you the direction. To simplify the image processing you use IR light and an IR monochrome camera.
To work out the math try sketching it in 2D with a circular "eyeball", a fixed point light that creates the specular highlight where a line between the light and the center of the eye crosses the circle, and a shaded arc to represent the pupil.
所有人类都会眨眼,因此您可以使用人类的这一特性来跟踪视频中的眼睛。
提示:双眼同时眨动
All humans blink so you can use this human property to track the eyes on video.
Tip: both eyes blink at the same time
您可能需要一些硬件才能做到这一点。然后,该设备的输出会为您提供一个测量值,您可以使用该测量值来计算用户在屏幕上注视的位置。
You'll likely need some hardware to do that. Then the output from that device gives you a measurement that you can use to calculate the place on the screen where the user is looking.