Click here to Skip to main content
15,796,738 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please, i want a code to help me detect the upper and lower eyelids i want to use it for my project on iris recognition system. Pls i need help, can somebody help me

I can save you some time. Eyelids - everyone has them.
Share this answer
Keith Barrow 17-Jul-11 9:19am    
Eye detection is hard enough, closed eyes harder as they are relatively featureless compare to eyes. I suppose You could take the approach of detecting open eyes then tracking them when they close but this doesn't suit all scenarios.

That said, [partial] facial detection is a full AI project in any case. If you search in the messages Q&A sections you'll see we get several questions about this sort of thing every year curiously around student project time :). I suggest you try the following:

  1. You find some third party code that does what you want or reduces the problem down to something manageable.*
  2. You find another strategy to do what you want (why eyelids btw, to see if someone is asleep?)
  3. You get another project

* I think Micrsoft Kinect has facial detection sotware and an SDK you can use (I've never tried it so YMMV). There are third party systems for facial detection using a webcam etc. Some webcams support this out the box.

I don't mean to be so down on your project, getting this to work properly is hard and it is better to get third party support to do this or change your project before it becomes too late. Hope this helps.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900