我一直在尝试找到一种方法来测量眼睛特写图像中瞳孔的大小。我想把它变成一个Android应用程序。我以前有过 Android 经验,但找不到任何 Java 解决方案来解决问题本身。
有很多用于面部检测甚至眼睛检测的示例代码,但没有一个可以检查静止图像并找到瞳孔,然后测量它们。有谁知道我如何继续尝试测量瞳孔的大小?
谢谢,
标记
我一直在尝试找到一种方法来测量眼睛特写图像中瞳孔的大小。我想把它变成一个Android应用程序。我以前有过 Android 经验,但找不到任何 Java 解决方案来解决问题本身。
有很多用于面部检测甚至眼睛检测的示例代码,但没有一个可以检查静止图像并找到瞳孔,然后测量它们。有谁知道我如何继续尝试测量瞳孔的大小?
谢谢,
标记
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 可以满足您的需求。祝一切顺利。