Iris detection with opencv
Asked Answered
A

4

9

How can I detect irises in a face with opencv?

Alicealicea answered 16/2, 2011 at 23:3 Comment(2)
It is complicated to use HoughCircles, because there are two circles with almost identical centers. Anyway, even when masking pupil out, the HoughCircles was not able to detect outer edge of the iris.Hackamore
would you please share your final result?Abrahamsen
A
5

Have a look at this forum thread. There's some source code there to get you started, but be careful about using it directly -- the original author seemed to have problems compiling it.

Abate answered 17/2, 2011 at 0:25 Comment(2)
codeproject.com/KB/dialog/Automatic_pupil_detection.aspx codeproject.com/KB/GDI-plus/HumanEmotionDetection.aspxAlicealicea
@misha OpenCV link wasn't work. aishack.in/2010/04/hough-circles-in-opencvCandless
E
2

Start with detecting circles - see cvHoughCircles - hint, eyes have a series of concentric circles.

Egyptian answered 16/2, 2011 at 23:59 Comment(0)
R
1

OpenCV has Face Detection module which uses Haar Cascade. You can use the same method to detect Iris. You collect some iris images and make it as positive set and non iris images as negative set. The use the Haar Training module to train it.

Recept answered 12/1, 2012 at 18:17 Comment(0)
C
1

Quick and dirty would be making an eye detection first with Haar filter, there are good model xml files shipped with opencv 2.4.2. Then you do some skin detection (in the HSV space rather than the rgb space) to identify the area of the eye in the middle, or circle search.
Also, projections, histogram-based decisions can be used once the eye area is cropped.

Comptom answered 1/11, 2012 at 21:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.