Reputation: 318
Ive been looking through the web to find a way to measure the diameter of pupils and iris. I know you can use CIDetector and CIFaceFeature classes to detect a persons face, eye and mouth locations, but there isn't anything for specific eye information (i.e pupil and iris diameter). I have seen a few apps already on the market but all the reviews say that they are not accurate and a waste of money. If anyone has done this or has a clue as to where to start (aside form CIDetector and CIFaceFeature) would be greatly appreciated.
Thanks!
Upvotes: 2
Views: 2000
Reputation: 325
After get eye positions, you can use some filters to try eliminate iris and sclera (white part of eye). So you can use another filter to raise contrast between iris and pupil. After that you can count pixel of iris and have a pixel measurement. As Andy A. told you will need a scale to convert to real measures.
Therefore this will be easier if you have a NIR camera to acquire images. With infrared the eye parts (pupil, iris and sclera) will have a better contrast.
We use NIR to acquire iris, create a template from it and match to authenticate a person. If you want we can help you if that filters I told before. As jcesar told, OpenCV has many filters to do this work.
Upvotes: 1
Reputation: 137
If you can get the eye positions and grab a box of pixels around it you can then go through with a simple loop grabbing the black pixels and white pixels giving you the relevant sections, from there you can measure the size in pixels however to convert this to a real life size you would have to have a scale somewhere on the picture for the computer to convert. This would all require coding but I imagine getting the position on the eyes is the hard bit. For an added bit of accuracy run it in both eyes and average the values.
Upvotes: 2