Automatic detection of pupils with OpenCV & node.js

asked 2013-11-06 14:43:39 -0600

dygerati gravatar image

updated 2013-11-06 14:50:32 -0600

berak gravatar image

I'm embarking on a project that involves creating a online tool to measure the pupillary distance of a person via a webcam/camera still photo. The tricky part has to do with automatic detection of the pupils in the photo. I have little/no experience with image processing of this kind, but I've been doing some research.

So far I'm considering using openCV through node.js using this available library: https://github.com/peterbraden/node-opencv .

Am I at all on the right track? The capabilities of this library seem limited compared to more developed ones for C++/java/python/etc, but the timeline for this project doesn't allow for my learning a new language in the process.

Just wanted to reach out to anyone with more experience with this kind of thing, and any tips/etc are more than welcome. Thanks!

edit retag flag offensive close merge delete

Comments

could you explain, what you mean by 'pupillary distance' ?

is that the size of the pupil ? the distance between the eyes ?

how do you plan to measure the distance of the person to the camera ?

and yes, that js wrapper is fairly limited.

berak gravatar imageberak ( 2013-11-06 15:10:29 -0600 )edit

Thanks for the response - the distance between the pupils. The main method of measuring the distance that I've seen is to have the user hold up a credit card under their nose with the strip visible. That's a standard size that you can then use to compute the PD (pupillary distance).

I was afraid that the wrapper would be too undeveloped. Do you think it's not up to the task? It's a little difficult for me to tell since I'm not yet sure how best to do the detection I need.

dygerati gravatar imagedygerati ( 2013-11-06 16:54:06 -0600 )edit