测量眼睛图像中的瞳孔大小
我一直在试图找到一种方法来测量眼睛特写图像中瞳孔的大小。我想把它变成一个 Android 应用程序。我以前有过 Android 经验,但找不到问题本身的任何 Java 解决方案。
有很多用于面部检测甚至眼睛检测的示例代码,但没有一个可以检查静态图像并找到瞳孔,然后测量它们。有谁知道我该如何继续测量瞳孔的大小?
谢谢,
马克
I've been trying to find a way to measure the size of a pupil in a close-up image of an eye. I want to turn this into an Android app. I have previous Android experience but can't find any Java solutions to the problem itself.
There is lots of example code for face detection and even eye detection but none that will examine a still image and find the pupils, then measure them. Does anybody know how I could proceed in trying to measure the size of the pupil?
Thanks,
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个极其困难的问题。使用计算机视觉算法,您可以隔离瞳孔并测量以像素为单位的平均直径,但您可以将其转换为物理尺寸,而无需知道眼睛距相机有多远以及相机的视野。例如,您可以让一个人的相机距离眼睛几英寸,而他们的瞳孔的像素大小可能与 100 英尺外广告牌上的眼睛图片相同。尽管从物理上来说,它们的尺寸非常不同。
This is an extremely difficult question. Using computer vision algorithms you can isolate the pupil and measure an average diameter in pixels, but you would ever be able to translate that into physical size without knowing how far the eye is from the camera and the camera's field of view. For example, you could have a person with the camera a few inches from their eye and their pupil could be the same size in pixels as a picture of an eye on a billboard 100 feet away. Even though, physically, they have very different sizes.
Android OpenCV 似乎可以满足您的需求。祝一切顺利。
http://opencv.willowgarage.com/wiki/Android2.2
It seems like Android OpenCV would work for your needs. Good luck getting it all to work.
http://opencv.willowgarage.com/wiki/Android2.2