by gregsadetsky · 5y ago · 0 comments
(I understand that this is a technically complicated, and potentially sensitive subject)
I've been approached by a few people who are doing what they can to lower the cost of prescription glasses. It's a mix of (licensed) ophthalmologists, people interested in offering community health services, etc.
What is the current state of the art for pupillary distance (PD) measurement based on face detection / pupil tracking using laptop webcams or mobile (front) cameras?
I imagine (obviously?) that there must be scholar research on the acceptable error margins for a PD measurement (depending on the type of vision condition, i.e. farsightedness, etc.)?
Would using something like Handsfree.js or https://github.com/esimov/pigo (which has pupil detection) be a good start, or would these be an ~order of magnitude off in terms of the necessary margins?
Thanks a lot.
We can detect faces, eyes and pupils, but with no reference points we have no idea how big or far apart they are.
What about sites (such as Warby Parker) that make you hold up a credit card (which has a standard size) and use that to determine (via what I assume is a rule of three) the PD? [0]
I can see of course problems with the card not being “perpendicular” and other 3d distortions.
And Google's MediaPipe Iris used iris diameter for distance estimation.[1]
EyeQue is perhaps a cautionary tale. "Change the world" "few dollars of optics + phone = D+CYL" become $45 one-person-per-subscription "vision tracker".
[1] https://ai.googleblog.com/2020/08/mediapipe-iris-real-time-i...
The credit card trick somewhat works since you can guage depth given the size and positioning of the card, but the errors still can end up in the 2-3mm range fairly easily.
The best mechanism would be to create something like a Google cardboard to guarantee the head is properly positioned and then perform the measurements.