测量眼睛图像中的瞳孔大小

发布于 2024-10-08 23:20:48 字数 193 浏览 6 评论 0原文

我一直在试图找到一种方法来测量眼睛特写图像中瞳孔的大小。我想把它变成一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情深已缘浅 2024-10-15 23:20:48

这是一个极其困难的问题。使用计算机视觉算法,您可以隔离瞳孔并测量以像素为单位的平均直径,但您可以将其转换为物理尺寸,而无需知道眼睛距相机有多远以及相机的视野。例如,您可以让一个人的相机距离眼睛几英寸,而他们的瞳孔的像素大小可能与 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.

奶茶白久 2024-10-15 23:20:48

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文